March 2019
Intermediate to advanced
208 pages
5h 11m
English
OCaml is a great language. It has strong typing, an excellent type inference language, features that encourage functional programming, and the ability to do object-oriented programming if that’s your preference. Why is OCaml one of the best languages you’ve never heard of? What’s not to like?
The syntax. OCaml’s syntax doesn’t look like the syntax of many commonly used languages. For example, you don’t use parentheses around a function’s arguments. You just put them after the function name, separated by whitespace:
| | let average a b = (a +. b) /. 2.0 |
| | let result = average 3.0 4.5 |
People often cite OCaml’s unusual syntax as a reason for not wanting to learn or adopt the language. Some people at Facebook decided to make a ...
Read now
Unlock full access