3 ms·
F# isn't really ML + .NET: the module system in F# is much less capable than that of Ocaml, but has the advantage that it is compatible with C# classes. There'
by chalst 5y ago
F# isn't really ML + .NET: the module system in F# is much less capable than that of Ocaml, but has the advantage that it is compatible with C# classes.
There's some nice stuff in F# that is entirely novel: my favourite feature is that if you omit passing ref values in a function call, they are added as multiple return values, a kind of dual to Currying.
- pjmlp 5y agoNot so much different from SML though.
- momentoftop 5y agoThe F# module system is just as incapable compared to SML. The SML and Ocaml module systems provide higher-kinding which isn't present in F#. And if you don't have functors, you're not SML/Ocaml.
- pjmlp 5y agoYou can approach it with generics.