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

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

Or maybe this is the usual printer confusion making this conversation
confusing. :)

On Thu, Jul 7, 2011 at 9:36 AM, Matthias Felleisen <matthias at ccs.neu.edu> wrote:
>
> you have one too many ' if that's what you want
>
>
> On Jul 7, 2011, at 10:33 AM, Bas Steunebrink wrote:
>
>> Thanks for the fast answers!
>> Actually I wanted to get 'unquote inside of a quasiquote; I'm now using:
>> `(... ,''unquote ...)
>> It ain't pretty but it appears to do the job! :-)
>>
>> Bas
>>
>>
>> On 7/7/11 16:20 PM, Robby Findler wrote:
>>> 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
>>>>
>> _________________________________________________
>> For list-related administrative tasks:
>> http://lists.racket-lang.org/listinfo/users
>
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>



Posted on the users mailing list.