[racket] `'unquote -- error or not?

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Thu Jul 7 10:20:25 EDT 2011

FWIW, I'm right in line with this rationale.

Robby

On Thu, Jul 7, 2011 at 9:13 AM, Matthias Felleisen <matthias at ccs.neu.edu> wrote:
>
> 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).
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>



Posted on the users mailing list.