[Top][All Lists]

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

Re: indenting java code

From: Kevin Rodgers
Subject: Re: indenting java code
Date: Thu, 06 Nov 2003 11:12:19 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Dan Anderson wrote:

`set' is very bad style here.

Out of curiosity, can you explain why setq is better then set?

Because it's the convention to only use set when the SYMBOL isn't known
(lexically) and has to be determined by evaluation.

Because (setq foo bar) == (set 'foo bar) == (set (quote foo) bar),
but setq doesn't require the Lisp reader to allocate 2 cons cells
for (quote foo).

Kevin Rodgers

reply via email to

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