emacs-devel
[Top][All Lists]
Advanced

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

Re: Default lexical-binding to t


From: Stefan Monnier
Subject: Re: Default lexical-binding to t
Date: Fri, 08 Nov 2024 13:43:20 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

> Being fundamentally a programmer in languages that support only lexical
> binding, I have little sense of the mechanics underlying dynamic binding.
> That said, I wonder if something along these line could help a bit:
>
> If a "void variable" error is about to be thrown and the source defaulted
> to dynamic binding then
>
>    - Perform a dynamic lookup of the offending variable
>
>
>    - If the lookup is unsuccessful then issue the same error as always
>
>
>    - If the lookup is successful, then modify the diagnostic to mention
>    the possibility of a dynamic / lexical binding clash

That's already what happens.


        Stefan




reply via email to

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