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: Thu, 21 Jan 2021 15:50:12 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> What's the purpose of TEST in macroexp-let2, then, other than to
> minimise bindings in the expansion?

The purpose is indeed just one of optimization applied to the
source code.

> (Which I presume is only relevant when Elisp's byte compiler is used
> to compile the expanded form.)

It's relevant both when the code is byte-compiled and when
it's interpreted.  But that depends on implementation details, so indeed
it can become useless in the future if/when we improve the interpreter
and/or compiler.  I don't know if it's still relevant when using the
native compiler, indeed.


        Stefan




reply via email to

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