help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: [External] : Re: Lexical vs. dynamic: small examples?


From: Emanuel Berg
Subject: Re: [External] : Re: Lexical vs. dynamic: small examples?
Date: Sun, 15 Aug 2021 02:52:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Drew Adams wrote:

> `let' binds the global variable (which, again,
> happens to be buffer-local).  That's how `let'
> behaves with a "special" var.  Otherwise, i.e.,
> for vars that are not "special", `let' provides
> a lexical binding - the scope ends where the
> `let' ends, lexically.

Can't we have a "let-special" that makes its own variables
special within its scope?

Then one could use let-special for dynamic scope (which now
would in fact be scoped!) and `let' would always be lexical
and one would never have to use ;;; -*- lexical-binding: t -*-

?

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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