[Top][All Lists]

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

Re: Imports / inclusion of s.el into Emacs

From: Lars Ingebrigtsen
Subject: Re: Imports / inclusion of s.el into Emacs
Date: Sun, 03 May 2020 10:15:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Philippe Vaucher <address@hidden> writes:

> No, there is `s-concat`. People would write
> (s-concat "foo" "bar" "zot" "gazonk")

Probably not if they'd learned the (nonsensical) prepend/append versions
of the functions first.

This design is all over the s.el library -- for instance, there's a
s-chop-suffix function, and a s-chop-suffixes function, where a natural
Lisp design would be to have the suffixes a &rest in a single function.

It's understandable for people to want to port over idioms they are
familiar with from other programming languages, but it would (usually)
be a mistake to incorporate them into the language.  s.el is "let's
pretend Emacs Lisp is Javascript and/or Clojure"; in a couple of years
there'll be an s.el that is "let's pretend Emacs Lisp is Rust or Go" and
we'll have the same aliasing discussion all over again.

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

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