[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Recommend lexical-binding in Coding Conventions
From: |
Stefan Monnier |
Subject: |
Re: Recommend lexical-binding in Coding Conventions |
Date: |
Wed, 21 Oct 2020 09:33:18 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> +@item
> +We recommended to enable @code{lexical-binding} in new code, and to
> +convert existing Emacs Lisp code to use lexical binding if it doesn't
> +already. @xref{Using Lexical Binding}.
There's a minor risk of confusion where this could be taken to mean that
we recommend code should be rewritten not to use any dynamically scoped
variables at all.
I'm not sure what would be the best wording to avoid this confusion. Maybe:
@item
We recommended to enable @code{lexical-binding} in all new code, and
to convert existing Emacs Lisp code to enable @code{lexical-binding}
if it doesn't already. @xref{Using Lexical Binding}.
-- Stefan