3 ms·
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.
by lenticular 8y ago
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.
- thedufer 8y agoThe ppx extension in question is called let-syntax, but also 4.08 is almost here and has built-in support for something similar.