4 ms·
I use Haskell a lot. I can't recall ever having to have added IO to a deeply nested expression like this.
by DanWaterworth 12y ago
I use Haskell a lot. I can't recall ever having to have added IO to a deeply nested expression like this.
- seanmcdirmid 12y agoWhy would it be done if it was hard? The path of least resistance in Haskell dictates not doing this, and carefully figuring out where you want IO up front. In contrast, in a language with side effects you just do it whenever you want and everything compiles as before, for better or worse. PL design is like a box of tradeoffs.
- lumpypua 12y agoDebugging... log "Var x =" x
- DanWaterworth 12y agoNope, just use trace.