by sebzim4500 · 3y ago · 0 comments
I’m currently in a phase where I don’t understand them.
Anything more specific than that should be handled case-by-case until you build an intuition for how any given monad will behave.
It's essentially a mini interpreter for tiny functionally pure segments of a program.
One tricky part of the interpretation is understanding the most familiar monadic data types in this paradigm. For example, the list monad representing discrete nondeterminism.
Writing about this so tersely is probably only going to confuse anyone who isn't already 90% of the way to understanding....
Computational context in this sense is like, is this computation of the type that can either fail or succeed? (Maybe monad). Or is this computation of the type that can produce multiple values of the same type? (List monad). Or maybe this computation can produce value of one type or another (Either monad). Or a computation that can interacti with inputs and outputs (IO monad).
So these are computations in differend kinds of computational "worlds" in a sense, with different rules on how such a computation in this context composes.
[1]: https://byorgey.wordpress.com/2009/01/12/abstraction-intuiti...
But if you are organized, you'll start with the most likely place and progress to increasingly less likely places. When you find it, there's no surprise, and no one gets much of a chuckle over your efforts.
If you don't understand the problem space, then saying "That's the last place I would have looked!" is an expression of exasperation about your lack of knowledge.
I always assumed it was kind of a 'life's a bitch' aphorism
well, it’s so simple: they’re just burritos!