Re: [racket] call-with-composable-continuation vs. call/cc

2011-03-25 Thread Casey Klein
On Sun, Mar 20, 2011 at 4:58 PM, Gregory Woodhouse wrote: > If I write a trivial loop using call/cc > > (call/cc >  (lambda (k) >   (define (loop) >     (let ([x (read)]) >       (if (eq? x '()) >           (k x) >           (loop >   (loop))) > > It does exactly what I expect. If I type anyth

[racket] call-with-composable-continuation vs. call/cc

2011-03-20 Thread Gregory Woodhouse
If I write a trivial loop using call/cc (call/cc (lambda (k) (define (loop) (let ([x (read)]) (if (eq? x '()) (k x) (loop (loop))) It does exactly what I expect. If I type anything but () it reads again, but if I type () it prints out '() and quits W