From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.help Subject: Re: shorter form of frequently-seen lisp idiom? Supersedes: <87is4kwaxs.fsf@ID-87814.user.uni-berlin.de> Date: Tue, 22 Feb 2005 22:20:10 +0100 Message-ID: <87d5uswaut.fsf@ID-87814.user.uni-berlin.de> References: <87y8dg64h3.fsf-monnier+gnu.emacs.help@gnu.org> <1109096963.491884.134590@c13g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1109107309 12528 80.91.229.2 (22 Feb 2005 21:21:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2005 21:21:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 22 22:21:48 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D3hSw-0004si-5Y for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Feb 2005 22:21:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3hjs-0003Zv-F1 for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Feb 2005 16:38:40 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Cancel-Key: sha1:nYBE7bXW+ohfvnK6dbptYaO69qQ= Cancel-Lock: sha1:pQ+PhOpfKLMAvWOAuoZjShYZ+gE= Original-NNTP-Posting-Host: 84.58.16.160 Original-X-Trace: 22 Feb 2005 22:21:32 +0100, 84.58.16.160 Original-Lines: 23 Original-X-Complaints-To: abuse@arcor-ip.de Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor-ip.de!news.arcor-ip.de!84.58.16.160 Original-Xref: shelby.stanford.edu gnu.emacs.help:128724 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24260 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24260 "rgb" writes: >> Rule of thumb: if your solution uses `eval' it's either buggy or > clunky. > > Interesting, I've never heard this. > My elisp isn't all that great yet so I looked for instances where > I use it. I use `eval' only when not using it would be tantamount to implementing a metacircular lisp interpreter. > > Is there a collection of more such tips someplace? ISTR that some tips like that (i.e. using `funcall' or `apply' instead of `eval') are in the (old?) FAQ for comp.lang.lisp. But it's rather for common lisp. Oliver -- 4 Ventôse an 213 de la Révolution Liberté, Egalité, Fraternité!