help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Advantage using mapc over dolist


From: Tomas Hlavaty
Subject: Re: Advantage using mapc over dolist
Date: Tue, 03 Dec 2024 16:40:03 +0100

On Tue 03 Dec 2024 at 15:59, Tomas Hlavaty <tom@logand.com> wrote:
> On Tue 03 Dec 2024 at 09:11, Stefan Monnier via Users list for the GNU Emacs 
> text editor <help-gnu-emacs@gnu.org> wrote:
>>>>           (pcase actm
>>>>            ('armg (do-this))
>>>>            ('go (do-that))))
>>>
>>> this does not justify pcase, use ecase or case instead
>>
>> That's your personal preference.
>> My own personal preference is to forget about
>> case/cl/case/ecase/cl-ecase and just use `pcase` like the author
>> already did.
>
> I respect your preference and understand that you as pcase author would
> prefer it everywhere.  But whoever renamed case and ecase did not
> respect other peoples preferences and people are now forced to use that
> pcase monstrosity even in very simple cases.

ecase comes from here:

   commit fcd737693e8e320acd70f91ec8e0728563244805
   Author: Richard M. Stallman <rms@gnu.org>
   Date:   Fri Jul 30 20:15:09 1993 +0000

       entered into RCS

renamed to cl-ecase here:

   commit 7c1898a7b93053cd0431f46f02d82c0a31bfb8bf
   Author: Stefan Monnier <monnier@iro.umontreal.ca>
   Date:   Sun Jun 3 21:05:17 2012 -0400

pcase comes from here:

   commit d02c9bcd096c44b4e3d5e2834c75967b56cdecdd
   Author: Stefan Monnier <monnier@iro.umontreal.ca>
   Date:   Tue Aug 10 15:18:14 2010 +0200

       * lisp/emacs-lisp/pcase.el: New file.

Not very nice to dismiss other peoples preferences as "just your
personal preference" while pushing through your personal preference.
That ecase macro was there for many decades, even before import to RCS
and you broke it and force your pcase way on everybody.  The author used
pcase because of you, not very good argument for pcase merit.



reply via email to

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