[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
- Re: Default lexical-binding to t, (continued)
- Re: Default lexical-binding to t, Andrea Corallo, 2024/11/07
- Re: Default lexical-binding to t, Stefan Monnier, 2024/11/08
- Re: Default lexical-binding to t, Sean Whitton, 2024/11/06
- Re: Default lexical-binding to t, Jim Porter, 2024/11/06
- Re: Default lexical-binding to t, Stefan Monnier, 2024/11/06
- Re: Default lexical-binding to t, John Yates, 2024/11/06
- Re: Default lexical-binding to t,
Stefan Monnier <=
- Re: Default lexical-binding to t, Jose A. Ortega Ruiz, 2024/11/06
- Re: Default lexical-binding to t, Stefan Monnier, 2024/11/08
- Re: Default lexical-binding to t, Richard Stallman, 2024/11/06
- Re: Default lexical-binding to t, Eli Zaretskii, 2024/11/07
- Re: Default lexical-binding to t, Richard Stallman, 2024/11/06
Re: Default lexical-binding to t, Christopher Howard, 2024/11/07