计算机科学 > 程序设计语言
[提交于 2015年12月8日]
标题:Modular implicits
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:EPTCS[v1] 2015年12月8日 星期二 00:00:00 UTC