3 ms·
Well, typeclasses and monads are not easy to implement in ocaml, to the best of my knowledge
by AzzieElbab 8y ago
Well, typeclasses and monads are not easy to implement in ocaml, to the best of my knowledge
- zem 8y agomonads are; there's just no syntactic support for them in the language, so they're a little clunkier to work with than they are in haskell
- ihm 8y agoWe use monads extensively (with monad syntax provided by the ppx_let extension) and OCaml also has a sophisticated module system that is useful in a similar way that type classes are. I would say type classes and a good module system are essentially incomparable language features though, and programming in Haskell always feels painful to me once you get to a few files without modules.