OCaml Modules: Think Immutable Singletons
OCaml Modules: Think Immutable Singletons:
OCaml’s module language is pretty confusing at first, second, and possibly third glance. You may be tempted to think that modules can be used like objects. Actually, OCaml modules are a little simpler than that. via Pocket