[CM] Multiple catch syntax
Woody Douglass
wdouglass at carnegierobotics.com
Tue Oct 19 07:57:37 PDT 2021
Ok, well in that case i guess i can do
```
(let ((handler (lambda (type args) #f)))
(catch 'error-one
(catch 'error-two
(lambda () #t)
handler)
handler))
```
maybe i'll write a macro. `(catch-multiple catchlist thunk handler)`
maybe...
Thanks,
Woody
On Tue, 2021-10-19 at 06:57 -0700, bil at ccrma.Stanford.EDU wrote:
> catch uses eq? to match the tag to the error type --
> I can't find any mention of this in s7.html -- will
> make it explicit. The expected usage for the
> (or 'a 'b) case would be to have two catches.
> Kinda ugly, now that I think about it. I borrowed
> catch from Guile, and now I don't remember if they
> accepted expressions for the tag. I don't like
> the r7rs "guard" or whatever they call it -- hmmm.
>
More information about the Cmdist
mailing list