emacs-devel
[Top][All Lists]
Advanced

[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: Mon, 11 May 2020 23:18:07 -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. ]]]

  > It would be a library rewrite because Magnar mostly defines the function
  > forms in terms of the anaphoric macros.

I did not suggest eliminating the anaphoric macros.  I think they are good.
Rather, I suggested extending them to support also the
function-based calling conventions.  Thus, the anaphoric macro would
support both forms of the construct.

  > (map #(/ % 2) '(2 4 6 8))

  > It's quite neat (the % being the equivalent of dash.el's `it`).

In Lisp we have always preferred to write things in the more general
form where you specify the arg names.  But a shorter construct
which avoid the need to specify the arg names might be ok.

What could that kind of abbreviated lambda-expression look like?


-- 
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]