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: lexbind Date: Wed, 05 Mar 2008 11:38:52 +0900 Message-ID: References: <87ir02fqlw.fsf@catnip.gol.com> <87ir02w0op.fsf@uwakimon.sk.tsukuba.ac.jp> 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 1204684768 6378 80.91.229.12 (5 Mar 2008 02:39:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2008 02:39:28 +0000 (UTC) Cc: paul r , Stefan Monnier , rms@gnu.org, emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 05 03:39:54 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 1JWjXn-0006DV-R6 for ged-emacs-devel@m.gmane.org; Wed, 05 Mar 2008 03:39:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWjXG-0006a4-Fk for ged-emacs-devel@m.gmane.org; Tue, 04 Mar 2008 21:39:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JWjXC-0006Zp-IR for emacs-devel@gnu.org; Tue, 04 Mar 2008 21:39:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JWjXB-0006Ya-38 for emacs-devel@gnu.org; Tue, 04 Mar 2008 21:39:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWjXA-0006YX-Ra for emacs-devel@gnu.org; Tue, 04 Mar 2008 21:39:08 -0500 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JWjX2-0005dA-IZ; Tue, 04 Mar 2008 21:39:01 -0500 Original-Received: from relay21.aps.necel.com ([10.29.19.50]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m252cjTe008644; Wed, 5 Mar 2008 11:38:52 +0900 (JST) Original-Received: from relay21.aps.necel.com ([10.29.19.20] [10.29.19.20]) by relay21.aps.necel.com with ESMTP; Wed, 5 Mar 2008 11:38:52 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay21.aps.necel.com with ESMTP; Wed, 5 Mar 2008 11:38:52 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 60E9E5CD; Wed, 5 Mar 2008 11:38:52 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <87ir02w0op.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Wed, 05 Mar 2008 08:04:38 +0900") Original-Lines: 29 X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) 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:91348 Archived-At: "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. -Miles -- Dictionary, n. A malevolent literary device for cramping the growth of a language and making it hard and inelastic. This dictionary, however, is a most useful work.