3 ms·
My only experience with OCaml is two hours that I spent coding in it for an interview problem. So, from a complete beginner's perspective: i) It needs better l
by crntaylor 15y ago
My only experience with OCaml is two hours that I spent coding in it for an interview problem. So, from a complete beginner's perspective:
i) It needs better libraries, or perhaps better library documentation. A full hour of my time was spent working out how to read lines from a file.
ii) It is a beautiful language. The code I wrote, as someone completely new to the language and not using any libraries, was much shorter than the equivalent code I would have written in Python, a language which I know much better, and an order of magnitude shorter than what I would have written in Java or C. It makes functional abstraction easy in the same way that Haskell does, but the ability to mix in imperative code if it gets the job done in fewer lines (or in a less mind-bending way) is supremely useful.
- Yoric 15y agoFor i), it's in progress: see OCaml Batteries Included http://batteries.forge.ocamlcore.org/ http://batteries.forge.ocamlcore.org/