4 ms·
It's explicitly not explaining what a monad is, first paragraph of the article: I've been informed that I didn't clearly explain what monads are and what the c
by dbaupp 14y ago
It's explicitly not explaining what a monad is, first paragraph of the article:
I've been informed that I didn't clearly explain what monads are and what the code examples are supposed to do. Sorry. I guess I assumed too much preexposure to monads. If you're no familiar with them, there are already so many tutorials on monads that I'll simply direct you to two of my favorites: spacesuits and wikipedia. I've also added more explanations of what the code snippets are supposed to do. I hope that helps.
(The spacesuits link is dead (live[1]) and neither directly address "your motivating example" point, although the non-monadic vs monadic code comparisons demonstrate that monadic code can be much much shorter and less repetitive.)
[1]: http://web.archive.org/web/20081206204420/http://www.loria.fr/~kow/monads/index.html http://web.archive.org/web/20081206204420/http://www.loria.f...
- Evbn 14y agoThe spacesuit one has been explicitly disowned by its author. "Programmable semicolons" is the rough modern consensus on the best one-line metaphor.