[plt-scheme] Bridging the gap (tiny correction)

From: Gary Baumgartner (gfb at cs.toronto.edu)
Date: Wed Mar 18 12:43:54 EDT 2009

On Wed, Mar 18, 2009 at 10:46:10AM -0400, Gary Baumgartner wrote:
[...]
>   (define (?) (error "No."))
>   ;

Oops, I ate a line somehow, though I doubt it confused anyone who
 would think about that implementation. Just in case there's an
 ambitious reader typing it in and trying to learn from it:

(define-syntax -<

>   (syntax-rules ()
>     ((-<) (?))
>     ((-< <e0> . <es>)
>      (let ((old-fail ?))
>        (let/cc resatisfy
>          (set! ? (lambda () (set! ? old-fail) (resatisfy (-< . <es>))))
>          <e0>)))))
[...]


Posted on the users mailing list.