emacs-devel
[Top][All Lists]
Advanced

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

Re: cond* vs pcase


From: Alfred M. Szmidt
Subject: Re: cond* vs pcase
Date: Tue, 06 Feb 2024 14:04:04 -0500

   >    > Because your not doing pattern matching, you're comparing against a
   >    > set of strings/symbols/numbers/....
   >
   >    Simply because pattern matching is a more powerful generalisation,
   >    capable of expressing case-distinction; in the end it compiles down to
   >    almost the same code anyway.
   >
   > Are you suggesting that COND/CASE/... and other "trivial" matching
   > constructs should be replaced with PCASE/COND*?

   No, just that using pcase in these cases isn't wrong.

Then we disagree on a fundamental level.  This is just like like using
EQUAL when comparing stricly strings is not the right tool for the
job.



reply via email to

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