[plt-scheme] Fun with Unicode and delimited continuations

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Fri Jun 4 13:17:01 EDT 2010

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))
 > f
 > (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. 

Posted on the users mailing list.