From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Clojure-like syntactic sugar for an anonymous function literal Date: Thu, 22 Jan 2015 10:37:54 -0200 Message-ID: References: <54C05269.7050602@dancol.org> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1421930296 31673 80.91.229.3 (22 Jan 2015 12:38:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2015 12:38:16 +0000 (UTC) Cc: Oleh , emacs-devel To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 22 13:38:11 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 1YEH1W-0004f5-FB for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2015 13:38:10 +0100 Original-Received: from localhost ([::1]:52876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEH1V-00041c-PP for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2015 07:38:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEH1I-00041T-1M for emacs-devel@gnu.org; Thu, 22 Jan 2015 07:37:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEH1H-0008Ao-3J for emacs-devel@gnu.org; Thu, 22 Jan 2015 07:37:55 -0500 Original-Received: from mail-ob0-x236.google.com ([2607:f8b0:4003:c01::236]:47228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEH1G-00089v-TB for emacs-devel@gnu.org; Thu, 22 Jan 2015 07:37:55 -0500 Original-Received: by mail-ob0-f182.google.com with SMTP id gq1so1100987obb.13 for ; Thu, 22 Jan 2015 04:37:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=siKitIsGGk3kdzvsTU5iG1Sof3Qi0KgtxzXwTtgHQhM=; b=vW6Bwl5eNBdR8J1WrkRtnmSrNNXU3hGDVP/KI/XdpRBwsriJ5+XhZsvR8TSXLMxByI GmHwJS5ok7iX4voTWP3+u/emqqpto4zsZIcqMQ6+oylNsfegqpMpHcw4MuNeT/gUzpPx Xc74UykMVe9UfXRolHupu3h7/JsHzdzA83l+sJ1Jgcm6DSfOEYIlERKC/imf1p0Cr50m 417uW3SJ4O2+a/ZoaGuyRIJGCF/AWw0XELhrKD6azGet3BzcD1XtUz4bWLHCVAAhWPhP dz0wj4YCyzWF5zR9Uyy0GCm4n10+7+DT4i4K9zG2nJPs2wpqKixymdTL+3eAyGrpmMCA bZtQ== X-Received: by 10.202.90.139 with SMTP id o133mr612293oib.99.1421930274442; Thu, 22 Jan 2015 04:37:54 -0800 (PST) Original-Received: by 10.76.125.1 with HTTP; Thu, 22 Jan 2015 04:37:54 -0800 (PST) In-Reply-To: <54C05269.7050602@dancol.org> X-Google-Sender-Auth: XviP5DI2nPm29zS9EdYKCNNAQgg X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::236 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:181589 Archived-At: > 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?