4 ms·
No, really, what's a monad?
- bookofjoe 9y agoanagram of nomad
- weinzierl 9y agoI really, really like, that you can view the examples in a bunch of different languages and I like the implementation of the switching UI. > Hopefully you have now gained at least a little sympathy for the Haskell purist who laments Python’s lack of 1st class support for monads. In languages like Haskell, applying a monad to a function doesn’t require you to refactor that function into a bunch of calls to bind: every function actually already uses the identity/trivial monad, and you can swap out the implementation anytime you want. One final listing that showed one of the earlier examples in Haskell to get a taste of "1st class support for monads" would have made this article perfect.
- chasedehan 9y agoThis works - thanks for that!