2 ms·
Well Haskell can still "stateless" in some sense, even if your program seems to take advantage of state. The State monad (and other monads), for example, just f
by wyager 12y ago
Well Haskell can still "stateless" in some sense, even if your program seems to take advantage of state. The State monad (and other monads), for example, just facilitate a bit of clever syntax to sneak computational context, which can include state, into the lambda calculus. The IO and STM monads (which deal with side effects) are a bit different, and can introduce true state into a program (with a bit of cleverness to make the existence of state mesh well with the lambda calculus).