[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: e and pi
From: |
Wojciech Meyer |
Subject: |
Re: e and pi |
Date: |
Fri, 17 Sep 2010 01:14:19 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 |
Hi Yidong,
Chong Yidong <address@hidden> writes:
> Stefan Monnier <address@hidden> writes:
>
> I don't like the idea of `float-e' and `float-pi'.
>
> What is the problem with dynamically scoping `e' and `pi'? If it's only
> the compiler warning, we can give the compiler a whitelist of variables
> not to complain about.
I like the idea of `float-' prefix, at least it tells the type plus it
might tell the module name too (mentioned `prefix convention'), any
language that provides these constants hides it, most likely it lands in
`Math' or `Float' module, so why Elisp should be different? Short names
should be really reserved in the local scope. I agree that `float-pi' is
less expressive than `pi' but if we got a construct (someday) for
opening module it will immediately become visible as `pi'. (we could
have local aliases too, in the scope of file, or toplevel expressions
inside module declarations etc., list of exposed functions...).
Wojciech
- Re: e and pi, (continued)
- Re: e and pi, Deniz Dogan, 2010/09/16
- Re: e and pi, Leo, 2010/09/16
- Re: e and pi, Helmut Eller, 2010/09/16
- Re: e and pi, Jason Rumney, 2010/09/16
- Re: e and pi, Chong Yidong, 2010/09/16
- Re: e and pi, Helmut Eller, 2010/09/17
- Re: e and pi, Stefan Monnier, 2010/09/17