|
From: | Dmitry Gutov |
Subject: | Re: Default lexical-binding to t |
Date: | Fri, 8 Nov 2024 00:37:25 +0200 |
User-agent: | Mozilla Thunderbird |
On 07/11/2024 23:23, Alan Mackenzie wrote:
I can't remember any discussion of the technical merits and demerits of lexical binding taking place on this list. I've been subscribed for over 20 years. Maybe I missed it. It seems strange, that's all.
I can suggest two points:- Lexical binding is closer to the how bindings work in contemporary languages, or ones that are most popular these days anyway. Which makes transition easier, and so helps with writing and debugging new Elisp.
- The "lexical binding" dialect of Elisp is easier to analyze for the byte-compiler. Not just in terms of performance, but to offer warnings about potential typos. Such detection won't work with "dynamic binding" Elisp: any variable with a weird name can be intended to be bound in the caller.
[Prev in Thread] | Current Thread | [Next in Thread] |