Re:Delimited Continuations for Perl
by nothingmuch on Thursday August 13, 2009 @03:34PM
(#761522)
the delimitation is not for data (that is closed over like any normal closure), it's for control.
when you apply a reified delimited continuation as a function it returns a value to that call site, to do the same with a traditional continuation you need to apply the reified continuation using call-cc, and it needs to know what to do with this continuation.
Re:Delimited Continuations for Perl
by nothingmuch on Thursday August 13, 2009 @09:11PM
(#762134)
So... why make the programmer do this? Can't you figure out for yourself the scope of the "highest free variable" in the referenced code?