It seems that there are two alternatives to have monadic let
s: using ppx_let, or binding operators as described in here. Which one is recommended? Are there different usage cases for each?
I was using Base
, in particular, the module Result
. It has support for ppx_let with Result.Let_syntax
as follows:
let open Result.Let_syntax in
let%bind x = ... in
...
Is there something similar already built-in in Result
for using binding operators?