Post by Fredrik Jagenheim
I'd counter it with "it's never
wrong to learn a new language, since learning a new language will
give you insight into your current language of choice and thus make
you a better programmer" if it wasn't for the fact that I myself have
tried to look over OCaml and failed utterly. :)
I don't think this applies to Objective Caml, because it is not just
another language, but another way entirely to think about programming.
OCaml purely functional, which you have little chance of 'just getting'
without some basic experience of functionnal programming. Trust me,
I've been there, and at first I hated it with a passion.
Only later did I realise how frighteningly powerful its approach is. At
first it is a total pain to get into -- to take one of the worst
examples, you can't add ints and floats, because '+' is an '(int, int)
-> int' kind of function, and there's a dedicated operator (+.) to add
floats together... And if you're gonna add ints and floats then you're
on your own. The counterpart is that your code basically validates
itself as you type it. If that tells you anything, the OCaml compiler
itself is written in OCaml, it produces code that compares (and often
beats) with C++ in terms of speed. It even beats C, sometimes, or so I
In short, OCaml is really great, but it's just not for us mere mortals.
email@example.com mailing list