News for hackers. Stuff that matters.
Re:Functional Programming in OCaml by lenticular on Sunday March 03, 2019 @09:53AM (#19294689)
You can define monads in OCaml just fine using the module system, but there's no do-notation. I think there is a PPX extension to give that, though.
Re:Functional Programming in OCaml by thedufer on Sunday March 03, 2019 @11:00AM (#19295056)
The ppx extension in question is called let-syntax, but also 4.08 is almost here and has built-in support for something similar.