Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Isn't F# a ripoff of OCAML?


What 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.


Just as much as OCaml is a "ripoff" of Standard ML.

So, not really.


f# and OCAML are both from ML family, so yes syntax is similar (see 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: