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 11:05:11 +0100 Message-ID: References: <54C05269.7050602@dancol.org> <87oaprfa3t.fsf@fencepost.gnu.org> <54C0C514.8020606@dancol.org> <54C0C7E9.4050009@dancol.org> <54C0C97C.9040707@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1421921118 7775 80.91.229.3 (22 Jan 2015 10:05:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2015 10:05:18 +0000 (UTC) Cc: David Kastrup , =?UTF-8?Q?Ren=C3=A9_Kyllingstad?= , "emacs-devel@gnu.org" To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 22 11:05:17 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 1YEEdZ-0002II-OR for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2015 11:05:17 +0100 Original-Received: from localhost ([::1]:52096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEEdZ-0005ap-5p for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2015 05:05:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEEdW-0005Zf-7w for emacs-devel@gnu.org; Thu, 22 Jan 2015 05:05:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEEdV-0001qS-Ag for emacs-devel@gnu.org; Thu, 22 Jan 2015 05:05:14 -0500 Original-Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]:53905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEEdU-0001o8-1f; Thu, 22 Jan 2015 05:05:12 -0500 Original-Received: by mail-we0-f170.google.com with SMTP id x3so776132wes.1; Thu, 22 Jan 2015 02:05:11 -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:content-transfer-encoding; bh=qmBkrY7AH+fKzm0wltvfbFzxjPrZb/W0yCEaOTCn0Ls=; b=gEaiL1pMtt7/km5idER4MoUT65n/5Num2NCdAJJ1WkgKPmr27LXkAI1VHarPHR/vwp xco2XMuIkTjFIKlh1lJqG3CMq9DsPK22k4yvjerJE21rBUfYj2WcGwQvnAofa7OsVkn8 VDGm8Pgg3uCIPF1wky6eqnGj75EPX4rE5KsP29ZKtLI0XXXUzdqLFiqqXvvFG9ahJZP3 dqc8JiemWwANjKnpPcFMOUPsmUGDCnWfWcpkiQG1M2mD8moXHBGZGOMDGH5ajfCVQxTE hZfc5Y+Wnqt6Ln4STYpMB9ns0P597AEJ6Exz1bnwEG1lpTgoFIdbdNJvpR0bQmE2HMpb AyLg== X-Received: by 10.181.28.168 with SMTP id jp8mr3645047wid.40.1421921111317; Thu, 22 Jan 2015 02:05:11 -0800 (PST) Original-Received: by 10.27.137.137 with HTTP; Thu, 22 Jan 2015 02:05:11 -0800 (PST) In-Reply-To: <54C0C97C.9040707@dancol.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::22a 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:181576 Archived-At: > Sure. My point is that existence of prettify-symbols-mode and equivalent > is another argument against the creation of a shorter-than-lambda > function literal syntax. Note that this isn't just a lame (defalias '=CE=BB 'lambda) we're talking about here. `short-lambda' takes away a *whole* paren nesting level, which can be a lot, when there's only two (and there usually is). It makes these one-line lambdas more pleasant to look at, they appear as simple atoms in the code, instead of structures, as they would: (let ((foo (lambda (x) (+ x x))) (bar #(+ % %))) (list (funcall foo 5) (funcall bar 6)))