pith. sign in

arxiv: 1905.06543 · v1 · pith:GLVYFMVBnew · submitted 2019-05-16 · 💻 cs.PL

Extending OCaml's 'open'

classification 💻 cs.PL
keywords ocamlopenmoduleconstructexistingextendingproposeaccept
0
0 comments X
read the original abstract

We propose a harmonious extension of OCaml's 'open' construct. OCaml's existing construct 'open M' imports the names exported by the module 'M' into the current scope. At present 'M' is required to be the path to a module. We propose extending 'open' to instead accept an arbitrary module expression, making it possible to succinctly address a number of existing scope-related difficulties that arise when writing OCaml programs.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.