emacs-devel
[Top][All Lists]
Advanced

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

Re: e and pi


From: David Kastrup
Subject: Re: e and pi
Date: Fri, 17 Sep 2010 10:15:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Simon Leinen <address@hidden> writes:

> On Fri, Sep 17, 2010 at 00:54, Chong Yidong <address@hidden> wrote:
>> What is the problem with dynamically scoping `e' and `pi'?
>
> Once programmers get used to lexical binding, they will reasonably
> assume that they can use variable names such as "e" in a LET or in a
> function/lambda parameter list without affecting outside code.
> Letting such likely-to-be-used names be dynamically scoped violates
> this assumption.  Let's try to keep the number of these pitfalls as
> low as possible.

So what's wrong with letting defconst _not_ introduce dynamic scoping,
and using it on e and pi?

> Maybe we cannot expect to get rid of "t" and "nil",

I have yet to see any code that reassigns t and nil, dynamically scoped
or not.

> but making "e" and "pi" available for lexical binding is a worthy
> goal.

Using defconst on them would appear to do that.

-- 
David Kastrup




reply via email to

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