[Python-ideas] Multi-statement anonymous functions

Masklinn masklinn at masklinn.net
Mon Jan 13 16:11:19 CET 2014


On 2014-01-13, at 15:06 , musicdenotation at gmail.com wrote:
> No, an I/O monad is a workaround for free side effects. What I want is a canonical, obvious, natural solution to a problem, not a workaround.

Monads are not workarounds for anything (anymore than option types are a
workaround for a lack of null), they're a type-safe encoding of a
sequential computation, the IO monad being the application of the
concept to the IO subset of side-effecting computations. Monads are not
restricted to side-effecting computations (let alone IO ones), in
Haskell option types and lists are also monadic types.



More information about the Python-ideas mailing list