3 ms·
I appreciate that your implementation follows the Haskell one. But the point of IO isn't the implementation, it's to make it easier to maintain code that intera
by lmm 8y ago
I appreciate that your implementation follows the Haskell one. But the point of IO isn't the implementation, it's to make it easier to maintain code that interacts with the real world. That's the part that feels cargo-culty to me (having gone down the same path in Python once): if the type system can't actually enforce that your monads are composed correctly then you pay the same cost you would in Haskell but don't get the main benefit.