From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Clojure-like syntactic sugar for an anonymous function literal Date: Thu, 22 Jan 2015 10:49:30 +0100 Message-ID: <87egqnf8lx.fsf@fencepost.gnu.org> References: <54C05269.7050602@dancol.org> <87oaprfa3t.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1421920196 24769 80.91.229.3 (22 Jan 2015 09:49:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2015 09:49:56 +0000 (UTC) Cc: Daniel Colascione , Oleh , "emacs-devel@gnu.org" To: =?iso-8859-1?Q?Ren=E9?= Kyllingstad Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 22 10:49:55 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 1YEEOf-0002Li-QE for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2015 10:49:53 +0100 Original-Received: from localhost ([::1]:52036 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEEOZ-000521-QG for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2015 04:49:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEEOK-00051c-PO for emacs-devel@gnu.org; Thu, 22 Jan 2015 04:49:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEEOJ-0002Xp-Tj for emacs-devel@gnu.org; Thu, 22 Jan 2015 04:49:32 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEEOJ-0002Xl-Qj for emacs-devel@gnu.org; Thu, 22 Jan 2015 04:49:31 -0500 Original-Received: from localhost ([127.0.0.1]:58068 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEEOJ-0006m4-7o; Thu, 22 Jan 2015 04:49:31 -0500 Original-Received: by lola (Postfix, from userid 1000) id B2812DF3F4; Thu, 22 Jan 2015 10:49:30 +0100 (CET) In-Reply-To: (=?iso-8859-1?Q?=22Ren=E9?= Kyllingstad"'s message of "Thu, 22 Jan 2015 10:35:40 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:181570 Archived-At: Ren=E9 Kyllingstad writes: > On Thu, Jan 22, 2015 at 10:17 AM, David Kastrup wrote: >> That does not mean that I am convinced we want or need short-lambda. > > Both C++ and Java have "recently" added a succinct syntax for their equiv= alents. > > Given the amount of work it is to add features to either platform, > quite a few people > deemed it useful there. > > At least most peoples .emacs will look a bit tidier with a succinct > anonymous lambda > as an argument to add-hook :) You are aware that using add-hook with ad-hoc functions is a bad idea since it may mean that you add the same functionality several times in case the add-hook is executed multiple times? --=20 David Kastrup