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 09:16:04 +0100 Message-ID: <871tmngri3.fsf@fencepost.gnu.org> References: <54C05269.7050602@dancol.org> <87a91buvqj.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1421914747 1121 80.91.229.3 (22 Jan 2015 08:19:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2015 08:19:07 +0000 (UTC) Cc: "Stephen J. Turnbull" , Daniel Colascione , emacs-devel@gnu.org To: Oleh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 22 09:19:02 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 1YECyj-0003eN-S2 for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2015 09:19:02 +0100 Original-Received: from localhost ([::1]:51643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YECyj-00072w-7E for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2015 03:19:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YECyf-0006yT-Jq for emacs-devel@gnu.org; Thu, 22 Jan 2015 03:18:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YECye-00034U-8v for emacs-devel@gnu.org; Thu, 22 Jan 2015 03:18:57 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YECye-00034Q-6x for emacs-devel@gnu.org; Thu, 22 Jan 2015 03:18:56 -0500 Original-Received: from localhost ([127.0.0.1]:56225 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YECyd-00063H-AB; Thu, 22 Jan 2015 03:18:55 -0500 Original-Received: by lola (Postfix, from userid 1000) id 67D71E0468; Thu, 22 Jan 2015 09:16:04 +0100 (CET) In-Reply-To: (Oleh's message of "Thu, 22 Jan 2015 09:04:30 +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:181557 Archived-At: Oleh writes: > Hi Stephen, > >> > > >> > > This is my first attempt of modifying the C source of Emacs. >> > > The goal is to add a new reader syntax: >> > > >> > > #(foo bar) should translate to (short-lambda (foo bar)) >> > >> > Thanks, but I'd strongly prefer not to baking this syntax into the elisp >> > reader. >> >> XEmacs is -1 on this change for the same reasons Daniel gives. >> >> I also don't like it because the convention is to use "#c" (where c is >> some character) for new syntax (eg, XEmacs uses #r"" for "rawstring >> syntax", where the benefit is huge because of the unreadability of >> regexps in ordinary strings). > > Note that it only takes the "#([^\"]" spot. The "#c" convention is > completely untouched, unless "c" is "(". > > Of course, I'm open to other variants, if this isn't accepted, maybe > "#l(foo bar)". The initial suggestion would be immediately familiar to > any Clojure programmer. Clojure is a bit more popular than Elisp, > judging by 8000 vs 3000 questions on Stack Overflow, Apparently we have better documentation and/or smarter users. > and 25,000 vs 22,000 repositories on Github. And Elisp is, after all, not a general-purpose scripting language but an editor extension language. At any rate, both of these numbers appear vastly inflated. I suspect that the "Elisp" category probably is covered by any project that bothers with providing a major mode for editing its files. -- David Kastrup