[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CPS in Parrot (was: A plea for a new old language)




Eli Collins <eli@cs.wisc.edu> writes:
> > "They're all globals!" model deeply internalized, then get hit in
> > rapid succession by Lisp's very different paradigm then a control
> > flow and variable model completely at odds with what they know to be
> > true.
> 
> You then show them setjmp/longjmp -- when they gag you Hop, Skip and Jump
> over to chapter 13 of _The Seasoned Schemer_ for a beautiful introduction.

You can't longjump back into a function that's already exited. You can
call a continuation to re-enter code that has
terminated. Exceptions/non-local *exits* are commonly understood, but
full continuations are very unusual to most people.

-- 
Perry E. Metzger		perry@piermont.com