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

My memory of OCaml is faded. Can you explain how Ocaml can be more verbose? Especially since the inference story in F# is not as full due to having to deal with objects with ad-hoc polymorphism. I don't see how Ocaml can be more verbose. The core language of both is virtually identical.

Also F# is not all of Ocaml. To mind, it lacks functors, ocaml strength modules and polymorphic variants. Ocaml also has the potential to be faster. At least in the single core case.



> Ocaml also has the potential to be faster. At least in the single core case.

F# can only go as fast as .NET. Compiled OCaml though is very fast - I completely agree with you.


I meant that the syntax of OCaml is more verbose. In F# (now that the #light directive is a default) you need less comparing to OCaml. Do not need to add ;; to terminate an expression (except for in REPL). Do not need to have "done" to close every loop declaration. Do not need to have "in" for "let" declarations.


You don't need ;; to terminate an expression (except when using the REPL).




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

Search: