Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Well, typeclasses and monads are not easy to implement in ocaml, to the best of my knowledge


We 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.


monads 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: