4 ms·
I don’t know how many times I’ve read things like this but it doesn’t seem to click. It’s like a burrito with map and bind functions? Well, alrighty!
by draw_down 2y ago
I don’t know how many times I’ve read things like this but it doesn’t seem to click. It’s like a burrito with map and bind functions? Well, alrighty!
- vendiddy 2y agoYeah seriously. I feel like these kinds of concepts I to hear a few concrete examples, then generalize. These analogies usually don't click with me.
- chuckadams 2y agoThat's actually the point of the article. There used to be a cottage industry in using real-world analogies to explain Monads. I'm not sure whether it started as an in-joke or not, but the most outlandish metaphor among others involved burritos (other metaphors out there that really did exist: assembly lines, toxic waste handling, and space suits). So now burritos are an in-joke among Haskell programmers, sort of a whimsical shibboleth. Check my other post in this thread for what I hope is a more accessible explanation of Monads. They're a very abstract thing, so there's no concrete metaphors to be had, just a common thread of piping values through "contextful" functions.
- throwaway689236 2y agoYeah, seems like a lot of articles are written just to have a catchy title.