* ' and non '
@ 2009-04-16 0:38 AlF
2009-04-16 1:08 ` Barry Margolin
0 siblings, 1 reply; 3+ messages in thread
From: AlF @ 2009-04-16 0:38 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
I came across two notation:
(c-set-offset 'substatement-open 0)
(c-set-offset 'substatement-open '0)
which is correct?
A.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ' and non '
2009-04-16 0:38 ' and non ' AlF
@ 2009-04-16 1:08 ` Barry Margolin
2009-04-16 6:06 ` AlF
0 siblings, 1 reply; 3+ messages in thread
From: Barry Margolin @ 2009-04-16 1:08 UTC (permalink / raw)
To: help-gnu-emacs
In article <49E67E11.5060708@ggmail.com>,
AlF <spamgrinder.trylater@ggmail.com> wrote:
> Hi,
>
> I came across two notation:
>
> (c-set-offset 'substatement-open 0)
>
> (c-set-offset 'substatement-open '0)
>
>
> which is correct?
>
> A.
They're equivalent. Single-quote in Lisp prevents the following
expression from being evaluated. Numbers evaluate to themselves, so the
quote is redundant.
Stylistically, it's rarely appropriate to quote self-evaluating data
types.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ' and non '
2009-04-16 1:08 ` Barry Margolin
@ 2009-04-16 6:06 ` AlF
0 siblings, 0 replies; 3+ messages in thread
From: AlF @ 2009-04-16 6:06 UTC (permalink / raw)
To: help-gnu-emacs
Barry Margolin wrote:
>
> They're equivalent. Single-quote in Lisp prevents the following
> expression from being evaluated. Numbers evaluate to themselves, so the
> quote is redundant.
>
> Stylistically, it's rarely appropriate to quote self-evaluating data
> types.
>
thx for the explanation ...
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-16 6:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-16 0:38 ' and non ' AlF
2009-04-16 1:08 ` Barry Margolin
2009-04-16 6:06 ` AlF
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).