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: Sun, 10 May 2020 22:37:25 -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. ]]]

  >    (print (eval (read)))

  > into:

  >     (-> (read)
  >       eval
  >       print)

The preference is a matter of taste.  If you have a taste for Lisp, the former
seems totally natural.  If you don't, maybe it seems strange.

->> is natural enough, because it adds the carried-over
argument at the end of the list.  But -> is unnatural,
since it adds the carried-over argument in the middle of the list
(after the first element).  I think that nested calls are
cleaner than ->.


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