|
|
|
|
|
by ragnese
1916 days ago
|
|
To someone who has a passing familiarity with OCaml, but none with F#, can you elaborate? Because I do hear the comparison frequently. Do people just draw the comparison because they don't actually know of any other ML languages besides OCaml? |
|
Things F# has that OCaml lacks: Extension methods, units of measure, type providers, quotations, computation expressions, active patterns, overloading.
Probably most of the F# things could be (and perhaps have been) added to OCaml with camlp4, which is more powerful than F#'s quotations. Versus, F# may never be able to have all of OCaml's ad-hoc polymorphism features. So there's that. But I'm mainly meaning to compare what's actually built into the language.