ocaml / rfcs Goto Github PK
View Code? Open in Web Editor NEWDesign discussions about the OCaml language
Design discussions about the OCaml language
In the ocamlib RFC, it seems the name of the package name/lib name has been formalized. I am wondering if this proposal can be extended to further formalize how one can access modules/types with such library.
For example,
Let's say lib ptime.clock.jsoo
defines modules A, B and C
. In my hello.exe
application I add reference to it from my dune file like so,
(executable
(name hello)
(libraries ptime.clock.jsoo))
Now, in my hello.ml file, ocaml would enforce the lib namespace such that to access any modules in ptime.clock.jsoo
, I would access the modules in it like so,
open Ptime.Clock.Jsoo
let () = A.hello()
of a full path
let () = Ptime.Clock.Jsoo.A.hello()
At the moment Dune (by default) implements a similar mechanism where in a lib_name also serves as its toplevel namespace but doesn't take into account .
in the module path name.
[1] https://github.com/ocaml/RFCs/blob/master/rfcs/ocamlib.md#libraries-and-ocamlpath
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.