News for hackers. Stuff that matters.
Re:OCaml, Batteries Included 1.0.0 released by mfp on Saturday January 23, 2010 @11:10AM (#1071969)
The new module organization avoids collisions with existing libraries like Extlib while allowing you to link Batteries' modules selectively, thus decreasing the size of the generated executables.

For convenience, all the modules are also available under the Batteries namespace. In this case, however, all of Batteries' code will be included in the executable --- that's how OCaml's linker works at the moment.

For instance, if you only use BatList in your code (or do module List = BatList to refer to it with that name), only that module will be included in the binary; if you do

    open Batteries
and then refer to the module simply as List, all the other modules in the Batteries hierarchy will also be included in the binary.

There are no comments on this comment yet.