2 ms·
> The attempts to introduce monads in other languages like Python, Ruby etc. is missing what make them a useful tool in Haskell. While I agree that the syntact
by exDM69 11y ago
> The attempts to introduce monads in other languages like Python, Ruby etc. is missing what make them a useful tool in Haskell.
While I agree that the syntactic sugar of the "do" notation in Haskell makes Monads vastly more useful, there are examples where Monads have been applied in other programming languages without any syntactic sugar.
For example, there are parser combinator libraries (influenced by Parsec) in many languages. E.g. Python's pyparsec is internally using monads that are defined just as they are in Haskell.
Monads are a great idea for many practical tasks in programming, their use in Haskell is often emphasized becuse they're required for IO (which is not the case for imperative languages). For many of the non-IO applications of monads, they're just as useful in other languages too.