[plt-scheme] Any reason to use quote rather than quasiquote
On Mar 2, 2004, at 5:29 PM, Felix Klock's PLT scheme proxy wrote:
>
> It seems to me that the MzScheme printer is being overly ambitious in
> its attempts to convert the symbol 'unquote into a comma (,).
Just to clarify:
I am not saying that I think this is a bug, at least not in the sense
that the output from the printer is unacceptable. Indeed, the output
seems to be perfectly legitimate syntax that could then be fed into a
standard Scheme reader.
I just thought that the output seemed confusing.
MzScheme does seem to do the "right" thing on expressions like:
> (syntax-object->datum #'(cons '1 (cons 'unquote '(3))))
So maybe this just goes to show that you really really shouldn't be
writing code like:
> (let (,2) (cons '1 (cons . ,'(3))))
-Felix
----
"Now you say, 'So what?!'" -G.C. Rota (11/21/97)