[plt-scheme] Any reason to use quote rather than quasiquote

From: Felix Klock's PLT scheme proxy (pltscheme at pnkfx.org)
Date: Tue Mar 2 17:29:14 EST 2004

Schemahs-

Well Eli's example led me to experiment, which opened up an interesting 
kettle of worms.

Does this output seem sensible to you all:

 > (syntax-object->datum #'(cons '1 (cons unquote '(3))))
(cons '1 (cons . ,'(3)))

?

It seems to me that the MzScheme printer is being overly ambitious in 
its attempts to convert the symbol 'unquote into a comma (,).

Thoughts?

-Felix

On Mar 2, 2004, at 3:41 PM, Eli Barzilay wrote:

>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> On Mar  2, ifconfig wrote:
>> Is there any reason to use 'quote rather than `quasiquote?
>> Does it run more efficiently? Is it treated differently? Or is it 
>> simply for
>> reducing the chance of an error?
>
> Just try it:
>
>> (syntax-object->datum (expand-once '(quasiquote (1 2 3))))
>   (quote (1 2 3))
>
> -- 
>           ((lambda (x) (x x)) (lambda (x) (x x)))          Eli 
> Barzilay:
>                   http://www.barzilay.org/                 Maze is 
> Life!
>

----
"A computer lets you make more mistakes faster then any
  other invention with the possible exceptions of handguns
  and Tequila"  -Mitch Ratcliffe



Posted on the users mailing list.