←back to thread

Learn OCaml

(ocaml-sf.org)
203 points smartmic | 1 comments | | HN request time: 0.421s | source
Show context
another_twist ◴[] No.44402433[source]
Is OCaml still worth learning these days ? Feels like plenty of languages are evolving quite well and most things can be done in imperative langs like Go/Java with pretty concise code and certainly better perf.
replies(6): >>44402448 #>>44402524 #>>44402790 #>>44404250 #>>44405117 #>>44408867 #
1. lmm ◴[] No.44404250[source]
> Is OCaml still worth learning these days ?

If you haven't learnt anything like it, yes.

> most things can be done in imperative langs like Go/Java with pretty concise code

Which is why learning OCaml will make you a better programmer even if you then go back to Go/Java. You'll most likely never learn how to do those things without taking that step.

> and certainly better perf.

If you implement the same algorithm in both, it will be faster in Java. But you're more likely to find the better algorithm working in OCaml.