
9 Oct
2004
9 Oct
'04
1:15 a.m.
G'day all.
Quoting Paul Hudak
Sorry to nit-pick, but state monads are NOT syntactic sugar -- they're just an example of good old data/functional abstraction, that also happens to be in the form of a monad.
Right. State monads help to future-proof your code because you don't have to change very much when you find that you need state _and_ something else (e.g. I/O). Cheers, Andrew Bromage