0
comment
comment
on 5/13/2014 7:41 AM
Most discussions about monads, even in F#, start by looking at the well-known standard
monads for handling state from Haskell. The reader monad gives us a way to propagate
some read-only state, the writer monad makes it possible to (imperatively) produce
values such as logs and the state monad encapsulates state that can be read and changed.
These are no doubt useful in Haskell, but I never found them as important for F#.
The first reason is that F# supports state and mutation and often it is just ea[...]