[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: e and pi
From: |
Lars Magne Ingebrigtsen |
Subject: |
Re: e and pi |
Date: |
Sat, 18 Sep 2010 17:01:00 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
> Indeed, there are a few places where Elisp code binds dynamic variables
> not with a let but with a function argument. I find this revolting, and
> would welcome a byte-compiler warning to "flog the author with a wet
> noodle".
I think Gnus does this a few places. Feel free to add a noodly compiler
warning, and I'll fix it up.
I think the plan to make bindings be lexical is great, but I'm not sure
what all the discussion about e, argv and pi is. :-)
This is my understanding: You want bindings to behave like in Common
Lisp, and have all special variables (i.e., things that have been
defined with defvar) to have dynamic scope (like today), and have all
the rest have lexical bindings. And the problem is that some variables
(well, constants) like `e' and `pi' are likely to be used by people in
bindings, so they'll get dynamic bindings where they don't expect it.
Is that a fair summary?
In that case, just go ahead and rename the variables.
(Although I don't really see how not using function arguments as dynamic
bindings really help much, but I agree that it's confusing.)
--
(domestic pets only, the antidote for overdose, milk.)
address@hidden * Lars Magne Ingebrigtsen
- Re: e and pi, (continued)
- Re: e and pi, Stephen J. Turnbull, 2010/09/18
- RE: e and pi, Drew Adams, 2010/09/18
- Re: e and pi, Stefan Monnier, 2010/09/17
- Re: e and pi, Chong Yidong, 2010/09/17
- Re: e and pi, Stefan Monnier, 2010/09/18
- Re: e and pi, Chong Yidong, 2010/09/18
- Re: e and pi, Uday S Reddy, 2010/09/18
- RE: e and pi, Drew Adams, 2010/09/18
- Re: e and pi, Juanma Barranquero, 2010/09/18
- Re: e and pi, Stefan Monnier, 2010/09/18
- Re: e and pi,
Lars Magne Ingebrigtsen <=
- Re: e and pi, Stefan Monnier, 2010/09/18
- Re: e and pi, Juanma Barranquero, 2010/09/19
- RE: e and pi, Drew Adams, 2010/09/17
- Re: e and pi, tomas, 2010/09/18
- Re: e and pi, David Kastrup, 2010/09/18
- Re: e and pi, tomas, 2010/09/19
- Re: e and pi, Uday S Reddy, 2010/09/17
Re: e and pi, Sam Steingold, 2010/09/17