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 14:07:54 +0100 Message-ID: References: <54C05269.7050602@dancol.org> <87h9vj6kzz.fsf@newcastle.ac.uk> <54C0F1DE.2020300@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1421932101 30289 80.91.229.3 (22 Jan 2015 13:08:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2015 13:08:21 +0000 (UTC) Cc: Phillip Lord , Artur Malabarba , emacs-devel To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 22 14:08:20 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 1YEHUf-0007KQ-Ts for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2015 14:08:18 +0100 Original-Received: from localhost ([::1]:53229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEHUf-0007ZR-9h for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2015 08:08:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEHUK-0007XZ-QK for emacs-devel@gnu.org; Thu, 22 Jan 2015 08:07:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEHUJ-0001vk-H7 for emacs-devel@gnu.org; Thu, 22 Jan 2015 08:07:56 -0500 Original-Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:35311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEHUJ-0001uH-BO for emacs-devel@gnu.org; Thu, 22 Jan 2015 08:07:55 -0500 Original-Received: by mail-wi0-f180.google.com with SMTP id bs8so3199012wib.1 for ; Thu, 22 Jan 2015 05:07:54 -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=l+9V2QpMTsGEoxb+PaLM5hs8e3oT4cNuhYXaGw9ElxY=; b=Hgy1IR747chIH/lfJf1NhHTijJxZZZ515re2Ti72wJJr92+/LHIu9s0qLoPFnjANAO rqG/9J86SZ5GJinkFY7G1ggIfEgep52g/+ZXOL+RWy9c68tdclFeikrAv7DoqBhg+MPo EqQyDGDQKzv5RPoorfwpbLoCQ0qsSBRaTmh9ZbRnMl5c684rTEuXQPW5ngLrUR5leAnU QA7GoOGdv/MZkykPi0kGaGB+1ze/rTzq+VjGvqNb0a3w64iZ2y9BUxhZ5uxcg7OitFUF SCQrSxMyevooTwzrpW14T0o9aN1jGHIjLuoLcVTUUMgaWXsMnJhdJdVvLFgvRUqVem0N VsnA== X-Received: by 10.194.175.102 with SMTP id bz6mr2794915wjc.120.1421932074807; Thu, 22 Jan 2015 05:07:54 -0800 (PST) Original-Received: by 10.27.137.137 with HTTP; Thu, 22 Jan 2015 05:07:54 -0800 (PST) In-Reply-To: <54C0F1DE.2020300@dancol.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::234 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:181593 Archived-At: >>>> 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. > > And the people who care for this shorthand syntax can do their > experiments out-of-tree, where they belong. It's unlikely that short > lambda syntax will ever make it into the Emacs core. Why so harsh? Was there a debate when `rx' made it to the Emacs core? It's an alternative syntax (which actually I still haven't learned, because, unlike `short-lambda', `rx' is actually hard to learn) for a string regex. There's nothing like it in other PLs, unlike the string regexes, which most of PLs feature. So how do I deal with `rx' when I encounter one? with C-x C-e So how can you deal with #(* % 2) when you encounter one? with C-x C-e: returns "(lambda (%) (* % 2))"