[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [External] : Re: cond* vs pcase
From: |
Alfred M. Szmidt |
Subject: |
Re: [External] : Re: cond* vs pcase |
Date: |
Wed, 07 Feb 2024 13:22:03 -0500 |
Po Lu <luangruo@yahoo.com> writes:
> Arthur Miller <arthur.miller@live.com> writes:
>
>> Drew Adams <drew.adams@oracle.com> writes:
>>
>>>> (pcase foo
>>>> ('bar (do-some-bar-stuff))
>>>> ('baz (do-some-baz-fluff)))
>>>>
>>>> is not more awful or wonderful than:
>>>>
>>>> (cl-case foo
>>>> (bar (do-some-bar-stuff))
>>>> (baz (do-some-baz-fluff)))
>
> Sorry to interject, but this really suggests that `cl-case' should
> become, simply, `case', in subr.el this time around...
That would be really nice (and maybe ecase, ccase as someone else
noted).
Pcase in that case, thanks.
pcase does not convey the same intent as either case or ecase. case
and ecase also have history, and are more familiar to people
programming Lisp (they are quite old, like many constructs -- so
suggestions like modifying cond outright should be disregarded point
blank).
- RE: [External] : Re: cond* vs pcase, (continued)
- RE: [External] : Re: cond* vs pcase, Drew Adams, 2024/02/06
- RE: [External] : Re: cond* vs pcase, Drew Adams, 2024/02/06
- RE: [External] : Re: cond* vs pcase, Adam Porter, 2024/02/06
- RE: [External] : Re: cond* vs pcase, Drew Adams, 2024/02/06
- Re: [External] : Re: cond* vs pcase, Arthur Miller, 2024/02/07
- Re: [External] : Re: cond* vs pcase, Po Lu, 2024/02/07
- RE: [External] : Re: cond* vs pcase, Drew Adams, 2024/02/07
- Re: [External] : Re: cond* vs pcase, Tomas Hlavaty, 2024/02/07
- Re: [External] : Re: cond* vs pcase, Richard Stallman, 2024/02/08
- Re: [External] : Re: cond* vs pcase, Arthur Miller, 2024/02/08
- Re: [External] : Re: cond* vs pcase,
Alfred M. Szmidt <=
- Re: [External] : Re: cond* vs pcase, Po Lu, 2024/02/07
- Re: [External] : Re: cond* vs pcase, Philip Kaludercic, 2024/02/07
- Re: [External] : Re: cond* vs pcase, Po Lu, 2024/02/07
- Re: [External] : Re: cond* vs pcase, Eli Zaretskii, 2024/02/08
- Re: [External] : Re: cond* vs pcase, Alfred M. Szmidt, 2024/02/08
- Re: [External] : Re: cond* vs pcase, Alfred M. Szmidt, 2024/02/08
- Re: [External] : Re: cond* vs pcase, Po Lu, 2024/02/08
- Re: [External] : Re: cond* vs pcase, Po Lu, 2024/02/08
- Message not available
- Re: Sv: [External] : Re: cond* vs pcase, Arthur Miller, 2024/02/08
- Re: [External] : Re: cond* vs pcase, Stefan Monnier, 2024/02/12