3 ms·
> this reads like "you can embed and call impure code inside pure code while the pure code stay pure" I think that's a fair summary yes. Monads let you define
by lmm 9y ago
> this reads like "you can embed and call impure code inside pure code while the pure code stay pure"
I think that's a fair summary yes. Monads let you define exactly what you need to do around the impure code to make it safe, and enforce that it's never used in a way that could "infect" the pure code around it.