Debian Codegraph @

doc/guide/src/LanguageChanges.adoc

raw
1 = LanguageChanges
2
3 We are sometimes asked to modify MLton to change the language it
4 compiles. In short, we are conservative about making such changes.
5 There are a number of reasons for this.
6
7 * <<DefinitionOfStandardML#,The Definition of Standard ML>> is an
8 extremely high standard of specification. The value of the Definition
9 would be significantly diluted by changes that are not specified at an
10 equally high level, and the dilution increases with the complexity of
11 the language change and its interaction with other language features.
12
13 * The SML community is small and there are a number of
14 <<StandardMLImplementations#,SML implementations>>. Without an
15 agreed-upon standard, it becomes very difficult to port programs
16 between compilers, and the community would be balkanized.
17
18 * Our main goal is to enable programmers to be as effective as
19 possible with MLton/SML. There are a number of improvements other
20 than language changes that we could spend our time on that would
21 provide more benefit to programmers.
22
23 * The more the language that MLton compiles changes over time, the
24 more difficult it is to use MLton as a stable platform for serious
25 program development.
26
27 Despite these drawbacks, we have extended SML in a couple of cases.
28
29 * <<ForeignFunctionInterface#,Foreign function interface>>
30 * <<MLBasis#,ML Basis system>>
31 * <<SuccessorML#,Successor ML features>>
32
33 We allow these language extensions because they provide functionality
34 that is impossible to achieve without them or have non-trivial
35 community support. The Definition does not define a foreign function
36 interface. So, we must either extend the language or greatly restrict
37 the class of programs that can be written. Similarly, the Definition
38 does not provide a mechanism for namespace control at the module
39 level, making it impossible to deliver packaged libraries and have a
40 hope of users using them without name clashes. The ML Basis system
41 addresses this problem. We have also provided a formal specification
42 of the ML Basis system at the level of the Definition.
43
44 == Also see
45
46 * http://www.mlton.org/pipermail/mlton/2004-August/016165.html
47 * http://www.mlton.org/pipermail/mlton-user/2004-December/000320.html