Re:Dijkstra on Haskell and Java (2001)
by michaelochurch on Wednesday January 08, 2014 @10:37AM
(#7024097)
The C of statically typed functional languages is OCaml.
[ Parent
| on HN ]
Which is more complicated and less expressive than haskell? That seems like a pretty bizarre choice.
Re:Dijkstra on Haskell and Java (2001)
by michaelochurch on Wednesday January 08, 2014 @11:11AM
(#7024357)
When I used OCaml, I almost never used the object system. I didn't need it.
The "full" OCaml is pretty complicated, but most of the libraries don't force the "O" on you. (That said, if you're going to use OCaml, you should use the Jane Street libraries, which are far better than the standard library.)
>When I used OCaml, I almost never used the object system. I didn't need it.
Me neither, but it is still part of the language and adds a ton of complexity. Which makes the analogy of ocaml to C vs haskell to C++ quite poor.
>The "full" OCaml is pretty complicated
Precisely the point. The full C++ is pretty complicated too. The full haskell is far simpler than either.
>That said, if you're going to use OCaml, you should use the Jane Street libraries
They didn't exist when I used ocaml, and I would never go back to ocaml now.