From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs] Date: Wed, 13 May 2020 00:00:55 -0400 Message-ID: References: <0c88192c-3c33-46ed-95cb-b4c6928016e3@default> <87wo5mc04t.fsf@fastmail.fm> <873686bbl5.fsf@russet.org.uk> <87d07963ec.fsf@fastmail.fm> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="101336"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Joost Kremers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 13 06:02:10 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYiaw-000QGs-Ra for ged-emacs-devel@m.gmane-mx.org; Wed, 13 May 2020 06:02:10 +0200 Original-Received: from localhost ([::1]:57268 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYiav-0003Tq-Si for ged-emacs-devel@m.gmane-mx.org; Wed, 13 May 2020 00:02:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYiZr-0002Gq-D3 for emacs-devel@gnu.org; Wed, 13 May 2020 00:01:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57043) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYiZr-0008NW-2V; Wed, 13 May 2020 00:01:03 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jYiZj-0004Dt-Dn; Wed, 13 May 2020 00:00:56 -0400 In-Reply-To: <87d07963ec.fsf@fastmail.fm> (message from Joost Kremers on Tue, 12 May 2020 09:03:39 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:250083 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > In Clojure, a function literal is written with `#(...)`, and it > supports `%n` for arguments, where n=1,2,3... (Actually, I don't > know if Clojure supports `%10` and up or if it just goes up to > `%9`, but I guess that doesn't matter much). A single `%` is > synonymous with `%1`, which is used when there's only one > argument. Also supported is `%&`, which is similar to `&rest > ` in Elisp, being bound to a list containing the remaining > arguments. This is rather shell-like. Can we find a nicer one? It doesn't specify how many args the literal function should accept. Maybe there is no need for that, but if we want to do that, how could we? Is there ever a need for nested literal functions? To implement them fully, we would want to use different arg names at each level. What Lisp syntax would people suggest for this construct? What is available? Does anyone think this is a bad idea? -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)