[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: R6RS exception printing at the REPL

From: Andy Wingo
Subject: Re: R6RS exception printing at the REPL
Date: Sat, 20 Nov 2010 21:19:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Heya Andreas,

On Sat 20 Nov 2010 19:18, Andreas Rottmann <address@hidden> writes:

> Andy Wingo <address@hidden> writes:
>>   set-exception-printer! : exception-printer -> nothing
> Did you mean the following?
> set-exception-printer! : key exception-printer -> nothing

Of course, yes. It seems I distilled the interface down past its
essentials! ;)

> Did you mean that `print-exception' should go into `(system repl
> error-handling)'?

This, that print-exception could go into (system repl
error-handling). The reason for this would be to allow the default
exception printer, embedded in print-exception, to use other modules,
like match or pmatch or the like. I think?

>> What do you think?
> Besides the above questions, I wonder where I should install the
> exception printer for R6RS exceptions (since the code will depend on
> quite a bit of R6RS, so we maybe want to have it loaded on demand, like
> in the last patch.

Good question.

For r6rs exceptions, I think either (rnrs conditions) or (rnrs

For srfi-35 conditions, either we make another registry for printers of
srfi-34 [sic] exceptions, or just assume that people using srfi-34
probably want srfi-35 as well, and have srfi-35 define the printer for
srfi-34 exceptions.

Thanks for the patch, and for dealing with a fickle maintainer!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]