[r6rs-discuss] Use backquote in "case"

Stanislav Ievlev inger at altlinux.org
Fri Nov 10 04:28:40 EST 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.




More information about the r6rs-discuss mailing list