Modular implicits

20Citations
Citations of this article
34Readers
Mendeley users who have this article in their library.

Abstract

We present modular implicits, an extension to the OCaml language for ad-hoc polymorphism inspired by Scala implicits and modular type classes. Modular implicits are based on type-directed implicit module parameters, and elaborate straightforwardly into OCaml's first-class functors. Basing the design on OCaml's modules leads to a system that naturally supports many features from other languages with systematic ad-hoc overloading, including inheritance, instance constraints, constructor classes and associated types.

Cite

CITATION STYLE

APA

White, L., Bour, F., & Yallop, J. (2015). Modular implicits. In Electronic Proceedings in Theoretical Computer Science, EPTCS (Vol. 198, pp. 22–63). Open Publishing Association. https://doi.org/10.4204/EPTCS.198.2

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free