emacs-devel
[Top][All Lists]
Advanced

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

Re: cond*


From: Ihor Radchenko
Subject: Re: cond*
Date: Sat, 06 Jan 2024 14:33:51 +0000

Richard Stallman <rms@gnu.org> writes:

>   > I was referring to what "pred" in `pcase' does:
>
>   > ‘(pred FUNCTION)’
>   >      Matches if the predicate FUNCTION returns non-‘nil’ when called on
>   >      EXPVAL.  The test can be negated with the syntax ‘(pred (not
>   >      FUNCTION))’.  The predicate FUNCTION can have one of the following
>   >      forms:
>
> Ok.  Given that for comparison, what conclusion or suggestion to you
> offer about cond*?

>From my reading of your latest spec of the cond*, I feel that it is
getting closer and closer to the features provided by `pcase'. The
description is also getting closer to pcase manual page length.

Since cond* is aiming to produce "simpler" syntax compared to pcase, I
feel that the concise style of pcase may either be avoided or considered
carefully. In particular, I believe that (PRED ...) in conf* is no
less confusing than (pred ...) that pcase provides. IMHO, the recursive
(PRED1 (PRED2 ...) ...) is more confusing compared to what pcase offers.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

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