←back to thread

Learn OCaml

(ocaml-sf.org)
203 points smartmic | 1 comments | | HN request time: 0s | 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 #
fulafel ◴[] No.44402448[source]
Functional programming is about clarity of expression and reduced cognitive load.

Aside from FP, the Ocaml type system is better than the mentioned ones. From one hand type inference means you have to write out types much less, and from the other hand the type system is more powerful and lets you express more things than Go/Java.

replies(1): >>44402601 #
1. another_twist ◴[] No.44402601[source]
Cant argue with this one. FP code is so much easier to reason about. I was looking at this more from a practical perspective.