Generic Programming with Combinators and Objects
Abstract
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.
- Publication:
-
arXiv e-prints
- Pub Date:
- June 2021
- DOI:
- 10.48550/arXiv.2106.01250
- arXiv:
- arXiv:2106.01250
- Bibcode:
- 2021arXiv210601250K
- Keywords:
-
- Computer Science - Programming Languages