Hacker News new | ask | show | jobs
by jw- 3146 days ago
By OCaml's let syntax do you mean this: https://blog.janestreet.com/let-syntax-and-why-you-should-us...?

You can also add F# computation expressions to the list!

2 comments

Yes, that's what I mean by let syntax. The implementation and more description can be found at 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.

Also, LINQ as realized in C# and VB. Crucially, `SelectMany` is just monadic bind.