Debian Codegraph @

doc/guide/src/MLBasis.adoc

raw
1 = MLBasis
2
3 The ML Basis system extends <<StandardML#,Standard ML>> to support
4 programming-in-the-very-large, namespace management at the module
5 level, separate delivery of library sources, and more. While Standard
6 ML modules are a sophisticated language for programming-in-the-large,
7 it is difficult, if not impossible, to accomplish a number of routine
8 namespace management operations when a program draws upon multiple
9 libraries provided by different vendors.
10
11 The ML Basis system is a simple, yet powerful, approach that builds
12 upon the programmer's intuitive notion (and
13 <<DefinitionOfStandardML#,The Definition of Standard ML (Revised)>>&rsquo;s
14 formal notion) of the top-level environment (a _basis_). The system
15 is designed as a natural extension of <<StandardML#,Standard ML>>; the
16 formal specification of the ML Basis system
17 (link:MLBasis.attachments/mlb-formal.pdf[`mlb-formal.pdf`]) is given in the style
18 of the Definition.
19
20 Here are some of the key features of the ML Basis system:
21
22 1. Explicit file order: The order of files (and, hence, the order of
23 evaluation) in the program is explicit. The ML Basis system's
24 semantics are structured in such a way that for any well-formed
25 project, there will be exactly one possible interpretation of the
26 project's syntax, static semantics, and dynamic semantics.
27
28 2. Implicit dependencies: A source file (corresponding to an SML
29 top-level declaration) is elaborated in the environment described by
30 preceding declarations. It is not necessary to explicitly list the
31 dependencies of a file.
32
33 3. Scoping and renaming: The ML Basis system provides mechanisms for
34 limiting the scope of (i.e, hiding) and renaming identifiers.
35
36 4. No naming convention for finding the file that defines a module.
37 To import a module, its defining file must appear in some ML Basis
38 file.
39
40 == Next steps
41
42 * <<MLBasisSyntaxAndSemantics#>>
43 * <<MLBasisExamples#>>
44 * <<MLBasisPathMap#>>
45 * <<MLBasisAnnotations#>>
46 * <<MLBasisAvailableLibraries#>>