[plt-scheme] R6RS exception handling and dynamic extent [was: SXML for R6RS]
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
course).
Something like this:
(define (keep-trying)
(with-handlers ([whatever? (lambda () ... (keep-trying))])
...))
Robby