From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: lexbind Date: Tue, 04 Mar 2008 21:08:10 -0800 Message-ID: <200803050508.m2558AsV011573@sallyv1.ics.uci.edu> References: <87ir02fqlw.fsf@catnip.gol.com> <87ir02w0op.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204693908 27585 80.91.229.12 (5 Mar 2008 05:11:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2008 05:11:48 +0000 (UTC) Cc: "Stephen J. Turnbull" , paul r , emacs-devel@gnu.org, Stefan Monnier , rms@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 05 06:12:14 2008 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 1JWlvJ-0005C7-DQ for ged-emacs-devel@m.gmane.org; Wed, 05 Mar 2008 06:12:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWlum-0006Q1-4X for ged-emacs-devel@m.gmane.org; Wed, 05 Mar 2008 00:11:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JWluR-0006HW-Ui for emacs-devel@gnu.org; Wed, 05 Mar 2008 00:11:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JWluP-0006GU-TZ for emacs-devel@gnu.org; Wed, 05 Mar 2008 00:11:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWluP-0006GQ-PF for emacs-devel@gnu.org; Wed, 05 Mar 2008 00:11:17 -0500 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1JWluI-00058B-C6; Wed, 05 Mar 2008 00:11:10 -0500 X-ICS-MailScanner-Watermark: 1205298494.88732@1h2c3qW7NRVKIe7IxhcY/Q Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m2558AsV011573; Tue, 4 Mar 2008 21:08:10 -0800 (PST) In-Reply-To: (Miles Bader's message of "Wed, 05 Mar 2008 11:38:52 +0900") Original-Lines: 27 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) 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:91354 Archived-At: Miles Bader writes: > "Stephen J. Turnbull" writes: > > > In the spirit of the (lexical-let ...), a possible improvement could > > > be to have a (lexical-defun ...), > > > > What improvement is this over > > > > (require 'cl-macs) > > (flet ((...))) > > > > I guess it requires two less levels of parentheses, and one less level > > of indentation. Anything else? > > Well, practically speaking, a slight problem is that it doesn't work > with cl's implementation of flet (which besides being very ugly, doesn't > actually implement lexical binding anyway). > > Of course in conjunction with lexical binding, it would be good to have > a real implementation of flet. > > Still, if you were using it for an entire file full of functions, issues > like the extra indentation (which is actually fairly large) and parens > could indeed be annoying. Strange that nobody has asked this yet: what about performance? I there already a noticeable improvement?