help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ' and non '


From: Barry Margolin
Subject: Re: ' and non '
Date: Wed, 15 Apr 2009 21:08:10 -0400
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

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 ***


reply via email to

[Prev in Thread] Current Thread [Next in Thread]