|
|
|
|
|
by verttii
2454 days ago
|
|
> You defy your own argument. If that's how you design application, what's the point of bothering with side effect isolation then? I don't understand this. If you have a monad like do
...
_ <- doSomething arg1
let result :: Result = pureFun arg2 arg3
...
How is that not simpler and better than having that pureFun invoke a bunch of side effects and perhaps even mutate something that you have to be aware of? How does this take away the benefits of side effect isolation? |
|
Of course, I suppose there is always unsafePerformIO, at least for those late-night debug sessions.