emacs-devel
[Top][All Lists]
Advanced

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

Re: combining cond and let, to replace pcase.


From: Tomas Hlavaty
Subject: Re: combining cond and let, to replace pcase.
Date: Sun, 19 Nov 2023 19:10:08 +0100

On Sun 19 Nov 2023 at 12:20, Michael Heerdegen <michael_heerdegen@web.de> wrote:
> Richard Stallman <rms@gnu.org> writes:
>
>> Some of them could do destructuring as well as matching.
>>
>> I hoipe that using a few constructs to divide up the job will avoid
>> the kludginess of pcase's bells-and-whistles-for-everything approach,
>> resulting in something equally convenient but made of simple
>> components.
>
> I really don't know how you come to such a conclusion.
[...]
> To me this discussion looks like some people aren't willing to accept
> multiplication like 10*5 because it "looks strange" and "one would rather
> write "5+5+5+5+5+5+5+5+5+5" because this would be much simpler and we
> don't need this strange "*" at all.

no, one would rather write (* 10 5)

and (+ 5 (* 3 2) 1) than 5+3*2+1

instead of a form with complex syntax, e.g. have * and + functions
instead of infix macro

that is why cl-loop and maybe pcase are "ugly"

one heuristic could be if autodoc can display something useful



reply via email to

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