[r6rs-discuss] Use backquote in "case"

MichaelL at frogware.com MichaelL at frogware.com
Fri Nov 10 00:27:50 EST 2006


(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)
                ...])





More information about the r6rs-discuss mailing list