Re:Monads are like burritos (2009)
by draw_down on Sunday June 02, 2024 @03:24PM
(#40556604)
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!
[ Parent
| on HN ]
Re:Monads are like burritos (2009)
by chuckadams on Sunday June 02, 2024 @03:43PM
(#40556732)
That'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.
Re:Monads are like burritos (2009)
by throwaway689236 on Sunday June 02, 2024 @04:13PM
(#40556905)
Yeah, seems like a lot of articles are written just to have a catchy title.