[r6rs-discuss] Use backquote in "case"

From: Stanislav Ievlev <inger>
Date: Fri Nov 10 04:28:47 2006

On Fri, Nov 10, 2006 at 12:27:50AM -0500, MichaelL_at_frogware.com wrote:
> (I was interested in feedback on the following before submitting a formal
> comment.)
>
> Would it make sense for "case" to be defined in terms of backquote rather
> than quote? The problem is that the use of quote makes references to
> constants impossible. For example, this doesn't work:
>
> (define some-const 'xxx)
>
> (case some-val
> [(some-const)
> ...])
>
> If "case" were defined in terms of backquote, though, this would be
> possible:
>
> (define some-const 'xxx)
>
> (case some-val
> [(,some-const)
> ...])
It's a too dangerous. We should avoid an implicit evaluation.
Received on Fri Nov 10 2006 - 04:28:40 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:00 UTC