From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: byte-opt.el addition - optimize list of compile-time constants Date: Thu, 9 Dec 2004 14:39:05 +0900 Message-ID: References: <87u0qxgn65.fsf@codesourcery.com> <87zn0op5dj.fsf@codesourcery.com> <87vfbcp3r2.fsf@codesourcery.com> <87r7m0p1w7.fsf@codesourcery.com> <87mzwoozgf.fsf@codesourcery.com> <874qiwqdo5.fsf-monnier+emacs@gnu.org> <878y88ox1k.fsf@codesourcery.com> Reply-To: snogglethorpe@gmail.com, miles@gnu.org NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1102570769 10754 80.91.229.6 (9 Dec 2004 05:39:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2004 05:39:29 +0000 (UTC) Cc: emacs-devel@gnu.org, Stefan Monnier , miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 09 06:39:25 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CcH1R-0003jT-00 for ; Thu, 09 Dec 2004 06:39:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CcHBJ-00010v-LM for ged-emacs-devel@m.gmane.org; Thu, 09 Dec 2004 00:49:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CcHB8-00010W-Sy for emacs-devel@gnu.org; Thu, 09 Dec 2004 00:49:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CcHB7-0000zz-UB for emacs-devel@gnu.org; Thu, 09 Dec 2004 00:49:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CcHB7-0000zp-RM for emacs-devel@gnu.org; Thu, 09 Dec 2004 00:49:25 -0500 Original-Received: from [64.233.184.196] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CcH1B-0001vQ-Uq for emacs-devel@gnu.org; Thu, 09 Dec 2004 00:39:10 -0500 Original-Received: by wproxy.gmail.com with SMTP id 36so243001wri for ; Wed, 08 Dec 2004 21:39:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=jwyN7pigSy5AuAE0FKGxo2ar96uO29B4872cE0snIB1b+Wqub6j9ByIHY3EDmNdzSkpwqAg3s3XpxfkKJCfLdVLylNXL6GC0D993CSc9FkXRSI0Oh0dQIM/ETnCOHB2IsQhQryqjQHKdr1a85cFFRhP+BYsLe0sP8cmMenPE9Og= Original-Received: by 10.54.19.15 with SMTP id 15mr1334318wrs; Wed, 08 Dec 2004 21:39:05 -0800 (PST) Original-Received: by 10.54.19.63 with HTTP; Wed, 8 Dec 2004 21:39:05 -0800 (PST) Original-To: Zack Weinberg In-Reply-To: <878y88ox1k.fsf@codesourcery.com> 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: main.gmane.org gmane.emacs.devel:30926 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30926 > > Note that a possibly safer alternative would be to have the #' > > reader macro expand into something less ambiguous during compilation > > (e.g., a special non-interned symbol), which the byte-compiler could > > then safely interpret inside of constants. This may cause grief for > > somebody that uses #' in a non-traditional way, and _expects_ to see > > (function (lambda ...)), but that may be an acceptable price. > > I don't think this is any better than saying that function always > means function, even if not evalled. I think you're wrong. Special reader macros like #' are a lot less ambiguous than simple arrangements of ordinary atoms like `function' and `lambda'. -Miles