4 ms·
ST is not the monad that should be used for state. You should use State for that. ST is an optimization trick mainly used by framework implementors. In my prof
by tathougies 9y ago
ST is not the monad that should be used for state. You should use State for that.
ST is an optimization trick mainly used by framework implementors. In my professional experience writing Haskell, I’ve never seen st used for anything important
- dllthomas 9y ago"mainly used by framework implementors" IMO it's data structures and algorithms - specifically those where mutation gives substantial speed improvement (which isn't all by any stretch) - more than "frameworks" as typically conceived...
- gowld 9y agoI wouldn't call "mutable arrays" an optimization trick mainly used by framework implementors, or "not important" https://wiki.haskell.org/Arrays https://wiki.haskell.org/Arrays