[racket] `'unquote -- error or not?
On Jul 7, 2011, at 10:01 AM, Bas Steunebrink wrote:
> Ciao a tutti,
>
> When I type `'unquote in DrRacket, an error is thrown:
>
> > `'unquote
> (X) unquote: expects exactly one expression in: (unquote)
>
> I understand why this error occurs from the way quasiquote is expanded; see e.g. http://community.schemewiki.org/?scheme-faq-language#qqmacro (I guess DrRacket works similarly). Still, I feel the result should be just 'unquote. What do you think?
No, your use of backquote explicitly calls for a search for unquote.
If you want the symbol unquote inside of an unquote, you first need to unquote:
> `,'unquote
unquote
(as in comma = unquote).