Re: Problem of implicit quasiquote Marc Nieper-Wißkirchen 28 Jun 2020 12:50 UTC

Am So., 28. Juni 2020 um 13:16 Uhr schrieb Shiro Kawai <xxxxxx@gmail.com>:

> Well, actually, (,'quasiquote (form ...)) will do.  Ugly, but works.

It's ugly insofar as one cannot make use of the reader syntax "`"
here. The same occurs with quasiquoting an unquote.

By the way, there's at least one built-in macro that does some kind of
implicit quoting, namely `case'. The natural syntax to extend case to
non-literals in the clauses would be to use the unquote (and,
possibly, equal? instead of eqv?):

(case key
 ((a ,x) #t)
 (else #f))

If x evaluates to b, this would return #t if key evaluates to a or b.