[Top][All Lists]

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

Re: lexical-binding is turned on in more use cases

From: Stefan Monnier
Subject: Re: lexical-binding is turned on in more use cases
Date: Tue, 10 Mar 2020 16:41:43 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> What specific real problem does forcing M-: to use lexical binding solve?

Make it behave the way coders who use lexical-binding (which I believe
are now the majority) expect.

You likely won't write code that relies on lexical scoping since you're
used to writing dynamically scoped code, but many coders nowadays never
touch dynamically scoped code and hence very much expect the lexical
binding rules, which is mostly the ability to use closures (which is
sometimes present only implicitly via macros like `gv-ref` (itself used
in other macros like `add-function`), thunk.el and generator.el macros,


reply via email to

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