2 ms·
Sort of true; monads like Reader/Writer/State can make pure computations appear impure. Making impure computations appear pure is another issue, to which monad
by jrockway 17y ago
Sort of true; monads like Reader/Writer/State can make pure computations appear impure.
Making impure computations appear pure is another issue, to which monads are orthogonal. (It boils down to making sure the program can only ever see the "current" state; then it doesn't matter whether something is actually mutable. I don't have a good bite-sized explanation, but I will try to find some relevant papers for you.)