2 ms·
Very similar. Initially, F# was an attempt to port Haskell to .NET. This was part of the so-called Iron project to port many languages to .NET to test out the a
by bmitc 4y ago
Very similar. Initially, F# was an attempt to port Haskell to .NET. This was part of the so-called Iron project to port many languages to .NET to test out the ability of the CLR to host different languages. Haskell was too difficult of a match for .NET, so they switched to OCaml. At the beginning, F# was actually compatible with OCaml, but it has since diverged becoming its own language.
I don't have much experience with OCaml, but I suspect F# is the easier one to setup and get going in. It's my understanding that OCaml has issues being setup on Windows. (This may be an out of date understanding.) Since F# is installed with .NET now, all it takes is for one to install the .NET SDK and then you have F#. This makes it very easy to install F# on basically anything.
Here is The Early History of F# by Don Syme, the creator of F#.
https://fsharp.org/history/hopl-final/hopl-fsharp.pdf https://fsharp.org/history/hopl-final/hopl-fsharp.pdf
While the ecosystem isn't as great as it could be, F# is by far my favorite language. I do not know of a language that hits better sweet spots.