[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs]

From: Richard Stallman
Subject: Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs]
Date: Wed, 13 May 2020 00:00:55 -0400

[[[ 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 
  > <var>` 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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]