emacs-devel
[Top][All Lists]
Advanced

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

Re: Are "proper" closures used in Emacs sources?


From: Andrea Corallo
Subject: Re: Are "proper" closures used in Emacs sources?
Date: Tue, 12 Jan 2021 16:48:20 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Marcin Borkowski <mbork@mbork.pl> writes:

> Hi all,
>
> it's been quite some time since lexical binding was introduced to
> Elisp.  Apart from possible optimizations and being less error-prone, it
> allows for all the cool tricks with closures.  Are there any places in
> Emacs core where "proper" closures are actually used?  (By "proper",
> I mean closures with non-empty lexical environment, actually using said
> environment.)

I've put a print in `byte-compile-make-closure' and did a bootstrap.

I'm counting 7289 occurrences in the Emacs code base.  Is this a correct
estimation?

  Andrea



reply via email to

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