emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: defmacro with built-in gensym declaration and initialization


From: Stefan Monnier
Subject: Re: defmacro with built-in gensym declaration and initialization
Date: Wed, 20 Jan 2021 10:09:53 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> IMO, this minor convenience is insufficient motivation for
> conflating/complicating a macro's global arglist, i.e. its arity,
> calling convention, etc., with utilities for its local body.  Is there
> some other motivation?  Am I missing something?

Agreed.  This is like the hideous `&aux` of Common Lisp.

> Why not provide handy gensym/once-only local conveniences for macro
> authors instead (some of which already exist in one form or another,
> e.g. macroexp-let2, inline-letevals, and org-with-gensyms)?

Indeed, `macroexp-let2` was designed for similar situations.
I'm not completely happy with it either, so if someone can design
something better, that'd be welcome,


        Stefan




reply via email to

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