2 ms·
> A monad is for composing computations with effects To nitpick: that's only one particular use of some monads.
by the_af 7y ago
> A monad is for composing computations with effects
To nitpick: that's only one particular use of some monads.
- mbrock 7y agoIt's pretty close to how both Moggi and Wadler formulated it in their respective seminal papers which introduced monads for representing different notions of computations in functional languages.
- chombier 7y agoWell of course, but arguably there's not much space between "monads-as-containers/burritos" and "monoids-in-the-category-of-endofunctors" presentations... If you know a better one in between I'm all ears :)