arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.01250cs.PL
收藏

使用组合器和对象的泛型编程

Generic Programming with Combinators and Objects

Dmitrii Kosarev, Dmitry Boulytchev

摘要:

我们提出了一个通用的编程框架OCAML,它使得有可能实现可扩展的转换为大规模的类型定义。我们的框架利用OCAML的面向对象的功能,利用后期绑定覆盖生成的转换的默认行为。对多态变体类型的支持补充了描述可组合数据类型的能力和实现可组合转换的能力。

英文摘要:

We present a generic programming framework for OCAML which makes it possible to implement extensible transformations for a large scale of type definitions. Our framework makes use of objectoriented features of OCAML, utilising late binding to override the default behaviour of generated transformations. The support for polymorphic variant types complements the ability to describe composable data types with the ability to implement composable transformations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑