[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Code for cond*
From: |
Alan Mackenzie |
Subject: |
Re: Code for cond* |
Date: |
Wed, 24 Jan 2024 12:39:54 +0000 |
Hello, Richard.
On Wed, Jan 17, 2024 at 22:37:47 -0500, Richard Stallman wrote:
> [[[ To any NSA and FBI agents reading my email: please consider ]]]
> [[[ whether defending the US Constitution against all enemies, ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> Here is the first draft of cond*. I have tested some cases
> but I ask others to help in testing it more thoroughly.
> I invite constructive comments, bug reports, patches,
> and suggestions.
[ .... ]
One thing I noticed was that the implementation makes no use of macros,
except for a trivial macro which "renames" cond* itself.
This is in contrase to pcase.el, which uses macros extensively,
requiring lisp/emacs-lisp/macroexp.el to work. In its turn macroexp.el
uses pcase. This leads to an unlovely artifice at bootstrap time.
The macro in cond* can be expanded by Fmacroexpand in src/eval.c. Thus,
at bootstrap, condstar.el could simply be loaded before macroexpand.el.
This is a Good Thing, and I'm sure it's not an accident. Please keep
this feature as cond* get amended and further developed.
> --
> Dr Richard Stallman (https://stallman.org)
> Chief GNUisance of the GNU Project (https://gnu.org)
> Founder, Free Software Foundation (https://fsf.org)
> Internet Hall-of-Famer (https://internethalloffame.org)
--
Alan Mackenzie (Nuremberg, Germany).
- Re: Code for cond*, (continued)
Re: Code for cond*, Richard Stallman, 2024/01/25
Re: Code for cond*,
Alan Mackenzie <=
- Re: Code for cond*, Emanuel Berg, 2024/01/24
- Re: Code for cond*, Manuel Giraud, 2024/01/24
- Re: Code for cond* - cond*-match, cond*-subpat and backtrack-aliases, Alan Mackenzie, 2024/01/25
- Re: Code for cond* - cond*-match, cond*-subpat and backtrack-aliases, Richard Stallman, 2024/01/28
- Re: Code for cond* - cond*-match, cond*-subpat and backtrack-aliases, JD Smith, 2024/01/29
- Re: Code for cond* - cond*-match, cond*-subpat and backtrack-aliases, Richard Stallman, 2024/01/31