Q: Are the continuations in Scheme related to the monads from
Haskell? If so, could someone elaborate on that?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Yes they are. Purely intuitively, you can see how writing code in a monadic
style (using = a lot) is very similar to writing in continuation-passing
style.
You can express this the most directly with the continuation monad. Then,
from this monad, you can express other monads. In some sense, the