[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How the backquote and the comma really work?
From: |
Michael Heerdegen |
Subject: |
Re: How the backquote and the comma really work? |
Date: |
Thu, 25 Jun 2015 20:40:20 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Drew Adams <drew.adams@oracle.com> writes:
> So `,foo evaluates variable foo, and `',foo evaluates foo and quotes
> the result.
Yes, that's an aspect that was missing in the mental model: backquote
works recursively, i.e. unquoting at deeper list levels is handled as
well.
> (setq titi `',foo) ; => 'bar
Whereby we don't want to conceal that the "'" is also a reader macro:
'thing -> (quote thing).
Here is the expression the reader generates for "`',foo":
(read "`',foo") ==> (\` (quote (\, foo)))
(be sure to eval with print-quoted nil, the default).
Michael.
RE: How the backquote and the comma really work?, Drew Adams, 2015/06/25
- Re: How the backquote and the comma really work?,
Michael Heerdegen <=
- Re: How the backquote and the comma really work?, Marcin Borkowski, 2015/06/25
- Re: How the backquote and the comma really work?, Michael Heerdegen, 2015/06/25
- RE: How the backquote and the comma really work?, Drew Adams, 2015/06/25
- Re: How the backquote and the comma really work?, Marcin Borkowski, 2015/06/25
- RE: How the backquote and the comma really work?, Drew Adams, 2015/06/25
Re: How the backquote and the comma really work?, Robert Thorpe, 2015/06/25
Message not availableRe: How the backquote and the comma really work?, Rusi, 2015/06/25
Re: How the backquote and the comma really work?, Michael Heerdegen, 2015/06/26
Message not availableRe: How the backquote and the comma really work?, Rusi, 2015/06/26
Re: How the backquote and the comma really work?, Michael Heerdegen, 2015/06/26