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

From: Robby Findler (robby at cs.uchicago.edu)
Date: Tue Mar 2 23:23:49 EST 2004

Another answer to this question is that you can use unquoting. You may
or may not have inferred this from later messages, but unquoting lets
you put values into the middle of a quoted expression. For example:

> (define (f x) `(1 2 ,x 4))
> (f 3)
(1 2 3 4)
> (f 'three)
(1 2 three 4)

Robby

At Tue, 2 Mar 2004 22:35:04 +0200, "ifconfig" wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> 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?
> 
> 
> Lots of questions today :)
> ifconfig
> BAGOS
> http://bagos.sourceforge.net
> 
> 



Posted on the users mailing list.