emacs-devel
[Top][All Lists]
Advanced

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

Re: e and pi


From: Chong Yidong
Subject: Re: e and pi
Date: Fri, 17 Sep 2010 21:10:52 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> This doesn't sound right---it means that people will have to make sure
>> their function args do not coincide with any defvar, defined anywhere.
>> It won't just be "e" and "pi" causing problems.  Someone might write
>
>>   (defun froob (argv)
>>      (lambda (f) (cons f argv)))
>
>> and have that fail, because "argv" is a defvar defined in startup.el.
>
> Exactly: hence the new warning.

This sounds fragile.

If function argument names are the problem, why not just give them
static scope, overriding any existing dynamic bindings?  While it's
idiomatic elisp to use `let' to bind dynamic variables, AFAICT no one
uses function arguments to do the same.



reply via email to

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