3 ms·
A cheap and unexciting trick for passing a value through a couple of functions. (Monads are cool, but it's important to understand that there's nothing, nuttin'
by pwpwp 16y ago
A cheap and unexciting trick for passing a value through a couple of functions. (Monads are cool, but it's important to understand that there's nothing, nuttin', whatsoever fancy about them, so I like to call them a "cheap trick".)
This is a good intro: http://homepages.inf.ed.ac.uk/wadler/papers/marktoberdorf/baastad.pdf http://homepages.inf.ed.ac.uk/wadler/papers/marktoberdorf/ba...
Be sure to mentally replace "monad" with "warm fuzzy thing" when reading it and it should make sense.
- thesz 16y agoActually, the effects of that trick are nothing less than exciting. For example, that trick allows you to pass information from future (one of Wadler examples).
- deleted 16y ago[deleted]