From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@newcastle.ac.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Clojure-like syntactic sugar for an anonymous function literal Date: Fri, 23 Jan 2015 10:34:49 +0000 Message-ID: <87egqlvl86.fsf@newcastle.ac.uk> References: <54C15ECA.5050008@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422009307 32228 80.91.229.3 (23 Jan 2015 10:35:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Jan 2015 10:35:07 +0000 (UTC) Cc: Daniel Colascione , Oleh , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 23 11:35:06 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YEbZw-0004As-RT for ged-emacs-devel@m.gmane.org; Fri, 23 Jan 2015 11:35:04 +0100 Original-Received: from localhost ([::1]:58069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEbZw-0002cp-8v for ged-emacs-devel@m.gmane.org; Fri, 23 Jan 2015 05:35:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEbZo-0002cI-7V for emacs-devel@gnu.org; Fri, 23 Jan 2015 05:35:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEbZj-0003b6-Bl for emacs-devel@gnu.org; Fri, 23 Jan 2015 05:34:56 -0500 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:50115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEbZj-0003ay-5S for emacs-devel@gnu.org; Fri, 23 Jan 2015 05:34:51 -0500 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1YEbZi-0005Ff-DF; Fri, 23 Jan 2015 10:34:50 +0000 Original-Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YEbZh-0006Lt-OL; Fri, 23 Jan 2015 10:34:49 +0000 In-Reply-To: (Stefan Monnier's message of "Thu, 22 Jan 2015 18:36:29 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181659 Archived-At: Stefan Monnier writes: >> That's a problem with any lisp that provides a reader-macro facility. >> The onus is on the authors of macro packages to create macros that work >> well with the existing emacs-lisp-mode parser. > > That's a good point. > >>>> So I'm currently against addition of CL style reader macros. >> Stefan, is emacs-lisp-mode support your only objection? > > Yes and no. No in the sense that I expect that introducing such reader > macros will have consequences that go further than just "emacs-lisp-mode > support". > > Maybe we could introduce a more limited form of reader macros. > E.g. allow # and make the reader return > > (funcall (cdr (assq reader-macro-alist)) ) Would it not be possible to have the reader return a macro which could do the cdr and assq at compile time and obviate the need for funcall? This would be faster. It means that changes to reader-macro-alist wouldn't be reflected in code till it was re-evaled. My main concern with this as a proposal is that is a fairly small namespace. There is a lot of possibility for pretty disasterous clashes if this gets used in the wild. Phil