Re:A Crash Course on ML Modules (2015)
by pjmlp on Monday February 26, 2018 @04:27AM
(#16464141)
While ML has lots of cool features, that kind of abstraction capabilities and compilation speed is also possible in other languages with modules.
Even if their modules aren't exactly ML-like, they offer similar features.
For example CLU also explored hidden types and generic interface definitions.
Modula-3 does offer opaque types, generic module interface definitions with multiple implementations and class inheritance. However it does lack closures/lambdas, forcing the use of function pointers, which aren't so developer friendly,
Similarly the way traits work in Scala are quite close to ML modules.
So there are ways of achieving ML module capabilities, even if not 1:1 as they are done in Standard ML.
Even if their modules aren't exactly ML-like, they offer similar features.
For example CLU also explored hidden types and generic interface definitions.
Modula-3 does offer opaque types, generic module interface definitions with multiple implementations and class inheritance. However it does lack closures/lambdas, forcing the use of function pointers, which aren't so developer friendly,
Similarly the way traits work in Scala are quite close to ML modules.
So there are ways of achieving ML module capabilities, even if not 1:1 as they are done in Standard ML.