[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cond*
From: |
Ihor Radchenko |
Subject: |
Re: cond* |
Date: |
Thu, 21 Dec 2023 14:10:51 +0000 |
Richard Stallman <rms@gnu.org> writes:
> ...
> This tries to be a real example:
>
> (defun byte-optimize-letX (form)
> (cond*
> ...
> ;; Decompose the form
> ((match* `(,head ,bindings . ,body) form))
>
> ;; Body is empty or just contains a constant.
> ((match* (or `() `(,(macroexp-const-p const))) body)
This may be confusing. Consider
(let ((somenumber 2) (form '(10)))
(cond*
((match* `(,(> (+ somenumber form-car-value) 3))) form)
))
It is not clear how to mark actual variables and variables to-be-bound
inside ,(...) match* constructs.
--
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: Instead of pcase, (continued)
- Re: Instead of pcase, Richard Stallman, 2023/12/15
- Re: Instead of pcase, Richard Stallman, 2023/12/15
- cond*, Richard Stallman, 2023/12/17
- Re: cond*, João Távora, 2023/12/18
- Re: cond*, Richard Stallman, 2023/12/20
- Re: cond*, João Távora, 2023/12/21
- RE: [External] : Re: cond*, Drew Adams, 2023/12/21
- Re: [External] : Re: cond*, João Távora, 2023/12/21
- Re: [External] : Re: cond*, Richard Stallman, 2023/12/23
- Re: cond*, Richard Stallman, 2023/12/23
- Re: cond*,
Ihor Radchenko <=
- Re: cond*, Richard Stallman, 2023/12/23
- Re: cond*, Ihor Radchenko, 2023/12/25
- Re: cond*, Richard Stallman, 2023/12/18
- Re: cond*, João Távora, 2023/12/19
- Re: cond*, Richard Stallman, 2023/12/21
- Re: cond*, Philip Kaludercic, 2023/12/22
- Re: cond*, Richard Stallman, 2023/12/24
- Re: cond*, Philip Kaludercic, 2023/12/25
- Re: cond*, Richard Stallman, 2023/12/26
- Re: cond*, Philip Kaludercic, 2023/12/27