From ... From: Erik Naggum Subject: Re: difference between &rest and &body Date: 2000/04/24 Message-ID: <3165559961204128@naggum.no>#1/1 X-Deja-AN: 614924907 References: mail-copies-to: never Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsmaster@eunet.no X-Trace: oslo-nntp.eunet.no 956571164 17948 195.0.192.66 (24 Apr 2000 10:12:44 GMT) Organization: Naggum Software; vox: +47 8800 8879; fax: +47 8800 8601; http://www.naggum.no User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5 Mime-Version: 1.0 NNTP-Posting-Date: 24 Apr 2000 10:12:44 GMT Newsgroups: comp.lang.lisp * Duane Smith | I am new to Lisp and am wondering what is the difference between using | &rest and &body in a macro definition. They appear to do the same thing. yes, they _do_ the same thing, but they _mean_ different things. the same is true of car and first, for instance. remember that software is not written for the computer, but for programmers, including yourself. the more precise you are in communicating your _intent_ when writing, the less you have to worry about reconstructing your intent when you read it later. &rest mainly communicates "a list of objects, mostly of similar type", while &body mainly communicates "forms to be evaluated in the context set up by the macro". there are lots of variations on this theme, of course, but you get the idea. #:Erik