Re: Should "who" be extended to allow identifiers?
Marc Nieper-Wißkirchen 29 Nov 2026 14:30 UTC
An identifier carries too much information.
The procedure value should be usable instead.
Am So., 29. Nov. 2026 um 04:28 Uhr schrieb Peter McGoron <xxxxxx@mcgoron.com>:
>
> In R6RS, the "who" condition must contain a string or a symbol. Should
> this SRFI extend it to allow for the "who" field to be an identifier (a
> syntax object wrapping an identifier)? This might allow for the
> implementation to give more contextual information to the exception handler.
>
> For example, the following would be allowed:
>
> (define (safe-car x)
> (unless (pair? x)
> (assertion-violation #'safe-car "not a pair" x))
> (car x))
>
> -- Peter McGoron
>