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: 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>



reply via email to

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