3 ms·
By OCaml's let syntax do you mean this: https://blog.janestreet.com/let-syntax-and-why-you-should-use-it/ https://blog.janestreet.com/let-syntax-and-why-you-sho
by jw- 9y ago
By OCaml's let syntax do you mean this: https://blog.janestreet.com/let-syntax-and-why-you-should-use-it/ https://blog.janestreet.com/let-syntax-and-why-you-should-us...?
You can also add F# computation expressions to the list!
- thedufer 9y agoYes, that's what I mean by let syntax. The implementation and more description can be found at https://github.com/janestreet/ppx_let https://github.com/janestreet/ppx_let I failed to find F# computation expressions, probably because I searched for the word "monad" which they seem to be avoiding, but that's another great example.
- noblethrasher 9y agoAlso, LINQ as realized in C# and VB. Crucially, `SelectMany` is just monadic bind.