4 ms·
it's a fairly different language. Haskell is lazy by default, Ocaml isn't. The Haskell type system makes use of side-effects explicit, and Ocaml does not. They'
by Barrin92 8y ago
it's a fairly different language. Haskell is lazy by default, Ocaml isn't. The Haskell type system makes use of side-effects explicit, and Ocaml does not. They're only similar in the sense that they're both functional languages.
Ocaml's module system is definitely worth looking at especially in contrast to Haskell's typeclass approach if you want to compare both languages.