[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>
- Re: cond*, Ihor Radchenko, 2024/01/01
- Re: cond*, Richard Stallman, 2024/01/02
- Re: cond*, Ihor Radchenko, 2024/01/03
- Re: cond*, Richard Stallman, 2024/01/04
- Re: cond*,
Ihor Radchenko <=
- RE: [External] : Re: cond*, Drew Adams, 2024/01/06
- Re: [External] : Re: cond*, Richard Stallman, 2024/01/07
- RE: [External] : Re: cond*, Drew Adams, 2024/01/08
- map seq and radix-tree-leaf, in pcase, Richard Stallman, 2024/01/08
- Re: cond*, Richard Stallman, 2024/01/07
- Re: cond*, Ihor Radchenko, 2024/01/10
- Re: cond*, Richard Stallman, 2024/01/12
- Re: cond*, Adam Porter, 2024/01/13
- Re: cond*, Richard Stallman, 2024/01/15
- Re: cond*, Ihor Radchenko, 2024/01/13