3 ms·
Isn't F# a ripoff of OCAML?
by synaesthesisx 12y ago
Isn't F# a ripoff of OCAML?
- Ironballs 12y agoJust as much as OCaml is a "ripoff" of Standard ML. So, not really.
- klibertp 12y agoWhat do you mean by "ripoff"? F# is not OCaml, but it indeed is closely related. They share some syntax and basic language features like tail call optimization, records and variants or pattern matching. On the other hand F# object system is completely different from OCaml's as it needs to work with other .NET languages. F# introduces active patterns and operator overloading which is absent from OCaml. OCaml features a very sophisticated module system, which in turn is absent from F#. In short, F# and OCaml are similar but distinct languages. Both are interesting and worth looking into, each in its own right.
- enricosada 12y agof# and OCAML are both from ML family, so yes syntax is similar (see https://en.wikipedia.org/wiki/Category:ML_programming_language_family https://en.wikipedia.org/wiki/Category:ML_programming_langua... ) Both can do oop Syntax differ a bit. F# is whitespace significant like python by default, or ml like with and option Saying ripoff in languages's design is stupid