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: Thu, 22 Jan 2015 12:46:40 +0000 Message-ID: <87h9vj6kzz.fsf@newcastle.ac.uk> References: <54C05269.7050602@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1421930829 8591 80.91.229.3 (22 Jan 2015 12:47:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2015 12:47:09 +0000 (UTC) Cc: Daniel Colascione , Oleh , emacs-devel To: Artur Malabarba Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 22 13:47: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 1YEHA7-0001la-37 for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2015 13:47:03 +0100 Original-Received: from localhost ([::1]:52901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEHA6-0006B8-GC for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2015 07:47:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEH9r-0006Af-JA for emacs-devel@gnu.org; Thu, 22 Jan 2015 07:46:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEH9n-0002gw-He for emacs-devel@gnu.org; Thu, 22 Jan 2015 07:46:47 -0500 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:39233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEH9n-0002gi-Ah for emacs-devel@gnu.org; Thu, 22 Jan 2015 07:46:43 -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 1YEH9m-0002Xw-EF; Thu, 22 Jan 2015 12:46:42 +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 1YEH9k-0006nU-O5; Thu, 22 Jan 2015 12:46:40 +0000 In-Reply-To: (Artur Malabarba's message of "Thu, 22 Jan 2015 10:37:54 -0200") 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:181591 Archived-At: Artur Malabarba writes: >> Thanks, but I'd strongly prefer not to baking this syntax into the elisp >> reader. IME, we tend not to use anonymous lambas enough to matter. >> Clojure is idiomatically pure-functional; we're not. > > It's not much about how pure-functional the language is, it's about > how useful the feature would be. > Later on this thread you report over 6800 lambdas in the code. How > many would have been enough? > >> I'd be more receptive to a generalized, CL-style reader-macro facility. >> You could then use that to implement this syntax, but locally. > > I have nothing against implementing this feature, but it would be more > complicated to implement and probably end up being less used than the > suggested feature. Why not have a shorthand lambda as well? The prospect of 30 implementations of shorthand lambdas does not fill be with joy either. If there were reader macros then the question as to whether to implement short hand lambdas would still come up.