[plt-scheme] R6RS exception handling and dynamic extent [was: SXML for R6RS]

From: Robby Findler (robby at cs.uchicago.edu)
Date: Fri Jul 11 10:49:02 EDT 2008

On Fri, Jul 11, 2008 at 9:42 AM, Derick Eddington
<derick.eddington at gmail.com> wrote:
>> > Would it be possible to have guard just not jump out,
>> It should jump out for the same reasons as `with-handlers', right?
> What are those reasons?  I've never known.

One reason is that loops that involve a with-handlers won't be
tail-recursive (unless you jump out yourself in the handler of

Something like this:

(define (keep-trying)
  (with-handlers ([whatever? (lambda () ... (keep-trying))])


Posted on the users mailing list.