|
|
|
|
|
by kqr
1546 days ago
|
|
I think the problem is that people have learned the monad concept and then go overboard with it. Only monads are like async code with callbacks. If people stuck to just explaining the IO monad specifically, which is a lot like async code with callbacks, then things would be better. I wrote about this a few years ago: https://two-wrongs.com/the-what-are-monads-fallacy |
|
I think you're right in saying that async is not representative of all monads, but it does help with questions that many beginners have, like "How do I get the value out of the maybe/IO/your-monad-here?"