|
|
|
|
|
by Locke1689
4939 days ago
|
|
No. It shuns mutable variables. It provides outs for performance or architectural reasons, but it's never a "good thing." The ST monad is there for many reasons but if you can avoid it you probably should. If profiling says it's necessary, then add it. Look at Coq. |
|
There's no reason to avoid ST, and in many cases it makes the code clearer and shorter than trying to figure out some pointfree contortionism to reach the same goal.
I'll look at Coq when it has support for binding to C libraries, opening sockets, or doing anything else than a programming language needs to support.