tag:blogger.com,1999:blog-5479191305093780981.post5915900903947616399..comments2022-02-28T11:35:44.077-08:00Comments on Lex Spoon: When stateful code is betterLex Spoonhttp://www.blogger.com/profile/13859632965228608649noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-5479191305093780981.post-35381887790046189232011-03-29T16:20:00.770-07:002011-03-29T16:20:00.770-07:00Or you could just use a monad. With the State mona...Or you could just use a monad. With the State monad, you manipulate (immutable) state, without having to pass it around explicitly.<br /><br />With the ST monad, you can indeed use a mutable log while staying purely functional.<br /><br />Stateful doesn't necessarily imply side-effects.Runarhttps://www.blogger.com/profile/14764166579276982834noreply@blogger.com