From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Why are there two dolist? Date: Wed, 12 Aug 2009 08:34:49 +0900 Message-ID: <874osdncva.fsf@catnip.gol.com> References: <87d472m0b0.fsf@catnip.gol.com> <20090811.193025.204578572.hanche@math.ntnu.no> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250033716 31967 80.91.229.12 (11 Aug 2009 23:35:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2009 23:35:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Harald Hanche-Olsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 12 01:35:08 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mb0s0-0004dd-EH for ged-emacs-devel@m.gmane.org; Wed, 12 Aug 2009 01:35:08 +0200 Original-Received: from localhost ([127.0.0.1]:49957 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mb0ry-0006LI-Ob for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 19:35:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mb0rs-0006Kp-PW for emacs-devel@gnu.org; Tue, 11 Aug 2009 19:35:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mb0rn-0006JH-Lh for emacs-devel@gnu.org; Tue, 11 Aug 2009 19:34:59 -0400 Original-Received: from [199.232.76.173] (port=37977 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mb0rn-0006J5-FZ for emacs-devel@gnu.org; Tue, 11 Aug 2009 19:34:55 -0400 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]:53252) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mb0rl-00037N-FZ; Tue, 11 Aug 2009 19:34:53 -0400 Original-Received: from 218.231.177.167.eo.eaccess.ne.jp ([218.231.177.167] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) id 1Mb0ri-00056O-En; Wed, 12 Aug 2009 08:34:50 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id C96FBDF93; Wed, 12 Aug 2009 08:34:49 +0900 (JST) System-Type: x86_64-unknown-linux-gnu In-Reply-To: <20090811.193025.204578572.hanche@math.ntnu.no> (Harald Hanche-Olsen's message of "Tue, 11 Aug 2009 19:30:25 -0400 (EDT)") Original-Lines: 18 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:114108 Archived-At: Harald Hanche-Olsen writes: >> > I haven't looked at the code (recently), but because elisp doesn't >> > natively support lexical blocks, I suspect the cl-macs version either >> > (1) adds unnecessary runtime overhead, or (2) drags in lots of big and >> > crufty compile-time analysis code (cl.el has lots of this) to optimize >> > away the block when not used. > > Actually, the cl-macs version looks pretty simple to me. Right, I checked -- it actually just incurs run-time overhead... :/ Anyway, the two-dolists are not the prettiest thing in the world, but they work fine, and there's a reason for having them. -miles -- Do not taunt Happy Fun Ball.