3 ms·
> Continuations sound confusing because they give you an explicit handle for something that most languages don't let you reference directly: who gets the result
by eru 17y ago
> Continuations sound confusing because they give you an explicit handle for something that most languages don't let you reference directly: who gets the result of the current computation.
Yes, unfortunately continuations don't play nice with lazy evaluation.
- cousin_it 17y agoHow about this? http://www.haskell.org/all_about_monads/html/contmonad.html http://www.haskell.org/all_about_monads/html/contmonad.html
- eru 17y agoYes, I know about the continuation monad. But that continuations have to be encapsulated in monads is telling. I have found a discussion about this http://lambda-the-ultimate.org/classic/message10560.html http://lambda-the-ultimate.org/classic/message10560.html