[Top][All Lists]

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

Re: Closures in Emacs and their usage scenarios.

From: Stefan Monnier
Subject: Re: Closures in Emacs and their usage scenarios.
Date: Fri, 01 Oct 2021 10:46:09 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>>>> And captured variables that are mutated are also quite rare
> In Emacs Lisp, closures mutating captured variables might be rare now
> because lexical scoping arrived recently.
> Many usage scenarios could be seen in Common Lisp and Scheme.
> There are examples in the Emacs code base already, see thunk-delay, for
> example.

Compared to the existing routine use of closures all over the place,
these remain exceptions hence my characterization of "rare".
This is just as true in Common Lisp and Scheme as in ELisp, even though
they have supported closures for a lot longer.


reply via email to

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