|
|
|
|
|
by mantap
2450 days ago
|
|
But it's considered good practice in Haskell to keep IO out of the main logic of the program and basically use it as little as possible. Haskell is certainly not an IO-focused language like Go and Rust. The IO monad is almost more of a deterrent than a tool. |
|
Even then, in Haskell you can say "this doesn't do IO" which you cannot in most languages!
It's also just an example of the expressiveness of the type system, which "most statically typed" cannot enforce or sometimes even express.