News for hackers. Stuff that matters.
Re:What I've learned since quitting Elm by AzzieElbab on Sunday August 26, 2018 @07:17PM (#17848452)
Well, typeclasses and monads are not easy to implement in ocaml, to the best of my knowledge
Re:What I've learned since quitting Elm by ihm on Tuesday August 28, 2018 @10:14AM (#17858900)
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.
Re:What I've learned since quitting Elm by zem on Sunday August 26, 2018 @07:58PM (#17848600)
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