2018
DOI: 10.4204/eptcs.285.3
|View full text |Cite
|
Sign up to set email alerts
|

Generic Programming in OCaml

Abstract: We present a library for generic programming in OCAML, adapting some techniques borrowed from other functional languages. The library makes use of three recent additions to OCAML: generalised abstract datatypes are essential to reflect types, extensible variants allow this reflection to be open for new additions, and extension points provide syntactic sugar and generate boiler plate code that simplify the use of the library. The building blocks of the library can be used to support many approaches to generic p… Show more

Help me understand this report
View preprint versions

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1

Citation Types

0
2
0

Year Published

2021
2021
2024
2024

Publication Types

Select...
3
1

Relationship

0
4

Authors

Journals

citations
Cited by 4 publications
(2 citation statements)
references
References 37 publications
0
2
0
Order By: Relevance
“…The languages closest to BCL are statically typed functional languages with type inference, such as SML, OCaml, and Haskell. OCaml has incorporated dynamic typing at the library level by leveraging its support for generalized algebraic data types [3]. Similarly, Haskell supports a dynamic type as a derivative of the Typeable type class, which uses reflection [13] to look at the runtime representation of types.…”
Section: Discussionmentioning
confidence: 99%
See 1 more Smart Citation
“…The languages closest to BCL are statically typed functional languages with type inference, such as SML, OCaml, and Haskell. OCaml has incorporated dynamic typing at the library level by leveraging its support for generalized algebraic data types [3]. Similarly, Haskell supports a dynamic type as a derivative of the Typeable type class, which uses reflection [13] to look at the runtime representation of types.…”
Section: Discussionmentioning
confidence: 99%
“…node exactly once. 3 The result of this is the same as originally intended by S&V's copy_dyn function. That is, we ensure there is a unique ?…”
Section: The Copy_dyn Conundrummentioning
confidence: 95%