From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Clojure-like syntactic sugar for an anonymous function literal Date: Thu, 22 Jan 2015 10:27:30 +0100 Message-ID: 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=UTF-8 X-Trace: ger.gmane.org 1421918870 3972 80.91.229.3 (22 Jan 2015 09:27:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2015 09:27:50 +0000 (UTC) Cc: Daniel Colascione , =?UTF-8?Q?Ren=C3=A9_Kyllingstad?= , "emacs-devel@gnu.org" To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 22 10:27:49 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 1YEE3J-000741-9s for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2015 10:27:49 +0100 Original-Received: from localhost ([::1]:51962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEE3I-0004xo-FG for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2015 04:27:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEE34-0004xY-H9 for emacs-devel@gnu.org; Thu, 22 Jan 2015 04:27:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEE33-0001Mf-KV for emacs-devel@gnu.org; Thu, 22 Jan 2015 04:27:34 -0500 Original-Received: from mail-wg0-x235.google.com ([2a00:1450:400c:c00::235]:51530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEE32-0001MG-9A; Thu, 22 Jan 2015 04:27:32 -0500 Original-Received: by mail-wg0-f53.google.com with SMTP id a1so539651wgh.12; Thu, 22 Jan 2015 01:27:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=hDvX/rosdH54d64HdwY2OHh+mClQXfnfFWnjl/nKyCc=; b=hvNp9EsCcKJjbPcim7kD5GjDoA8yyQbAcH/09E57A+8QBlOCM8ftBeDJZriRgz8MUX FQN4gqvhPigA2AFcOo5vXqv9lPc0ebF8OQNycOfIIyJD69WWKHVqPydrfplaeJvjMVSw MwDVpZkVzFaZ94ck3zrpD3xWwPJ14z+ZYQ92pu5EQNOqZq6J9SUa6nd6jiXAwlwDAiQb jIQzWjhjDpWmo0QE2yodRKKdYpkNQRveooIj1FnLu9t3FkxcakQGOUUF/Ne9ueiAXEC4 6+KgLY6M/GRcnpk8OdwsTzoAdPvLRK0KCeIebyBfvvCYaAIdPelaTceq9y6zPcAAF3ur hxnA== X-Received: by 10.194.60.19 with SMTP id d19mr1053573wjr.48.1421918850585; Thu, 22 Jan 2015 01:27:30 -0800 (PST) Original-Received: by 10.27.137.137 with HTTP; Thu, 22 Jan 2015 01:27:30 -0800 (PST) In-Reply-To: <87oaprfa3t.fsf@fencepost.gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::235 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:181565 Archived-At: Hi David, > Anonymous lambdas become considerably more useful once you have lexical > scoping. The latter has not been around long enough to have had a major > impact on Elisp programming styles yet. > > That does not mean that I am convinced we want or need short-lambda. The most popular library in MELPA, https://github.com/magnars/dash.el, implements it (for a long time) like this: (--map (* it it) '(1 2 3)) ;; => (1 4 9) With my approach, it's: (mapcar #(* % %) '(1 2 3)) ;; => (1 4 9) I've grepped the useage of `--map' in all > 150 third party packages that depend on `dash'. I got 203 total results 60 different packages. This says a lot about people wanting this feature for a long time.