[plt-scheme] Fun with Unicode and delimited continuations
On Jun 4, 2010, at 1:07 PM, John Clements wrote:
> so I'm not sure I'm understanding what you're suggesting.
Here is what I am suggestion:
Welcome to Racket v5.0.0.1.
> (define f 0)
> (require racket/control)
> (+ 1 (let/ec k (set! f k) 10))
11
> f
#<escape-continuation>
> (f 1)
continuation application: attempt to jump into an escape continuation
Produce this behavior in Python. In Python, you actually return from
the procedure (at least it makes it look like it) and you use the
continuation, yet, you can jump back into it.