AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Haskell Has a Monad?
Another way of handling state in purely functional immutable languages are monads. A monad has nothing to do with concurrency, right? So you can't use the same construct for the two different jobs in Haskell. Also, it's while there are libraries for closure, I think the concept is much more powerful in a language like Haskell where the type system is helping a lot. Yeah. And that's why Haskell has an STM and M VARS. It has those things because that's how you get multiple independent threads of control to coordinate a monad is about one thread of control. Right.