[plt-scheme] Semantics of quote

From: Mark Engelberg (mark.engelberg at gmail.com)
Date: Mon Jun 23 15:08:29 EDT 2008

Some examples:

(cons 'quote (cons 'a empty)) prints as 'a

(define-syntax my-quote
  (syntax-rules ()
    ((my-quote expr)
     (quote expr))))

(quote (quote a))
(quote (my-quote a))

yield different outputs.


On Mon, Jun 23, 2008 at 7:52 AM, Jos Koot <jos.koot at telefonica.net> wrote:
> Can you be somewhat more specific? What kind of subtle things do you
> encounter?
> jos
> ----- Original Message ----- From: "Mark Engelberg"
> <mark.engelberg at gmail.com>
> To: "pltscheme" <plt-scheme at list.cs.brown.edu>
> Sent: Monday, June 23, 2008 6:25 AM
> Subject: [plt-scheme] Semantics of quote
>> Can anyone point me to a fairly precise explanation of quote?
>> Sometimes I encounter subtle things that make me wonder whether my
>> mental model of how quote works is accurate.
>> --Mark
>> _________________________________________________
>>  For list-related administrative tasks:
>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.