Hacker News new | ask | show | jobs
by risto1 2852 days ago
^ what yodsanklai said ^

Ocaml has declarative OO programming via it's module system. Typeclasses and Ocaml modules have equivalent expressive power, so you'd achieve that with typeclasses in Haskell. But Ocaml's type system is much simpler and more explicit, which makes it much easier to learn and use