[Haskell-cafe] Seeking advice on a style question

Steve Schafer steve at fenestra.com
Tue Dec 26 11:47:46 EST 2006


On Mon, 25 Dec 2006 09:52:47 -0800, you wrote:

>To my eye, your example code below looks less like an imperative
>program than like an intermediate form that a compiler would generate
>from an expression built up from nested function applications and a
>few "let"s.

That's very true, but the same could be said for many other examples
of the use of the State monad (and Reader and Writer as well). They
frequently don't do anything that couldn't be done purely
functionally.

Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/


More information about the Haskell-Cafe mailing list