Hacker News new | ask | show | jobs
by sshine 753 days ago
> How far is standard ML from F#?

There was a time when F# was just an OCaml extension for .NET, but it has developed a lot since.

You may not find a lot of in-depth comparisons between F# and Standard ML, because Standard ML isn't widely mentioned outside of academic research. But you do find comparisons between F# and OCaml, and that may paint a very similar picture:

https://jkone27-3876.medium.com/comparing-ocaml-to-f-f75e4ab...

The most significant differences I can think of are:

1) Standard ML and OCaml have a higher-order module system, and F# has interfaces that you can parameterise over generics.

2) The OCaml ecosystem is functional code on top of functional code, and F# is made to interact with non-functional code on .NET. (As for Standard ML, there isn't much of an ecosystem.)