emacs-devel
[Top][All Lists]
Advanced

[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).



reply via email to

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