all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Stefan Monnier'" <monnier@IRO.UMontreal.CA>,
	"'Emacs Devel'" <emacs-devel@gnu.org>
Subject: RE: e and pi
Date: Fri, 17 Sep 2010 15:55:09 -0700	[thread overview]
Message-ID: <01D72FFCE398424FAE945D3CD0DCDA6C@us.oracle.com> (raw)
In-Reply-To: <jwv7hikdnjh.fsf-monnier+emacs@gnu.org>

> > why does the constant e exist in the first place?
> 
> Beats me: it's only used at one place in emacs/lisp.
> But that's what we have to live with,

Why?  This seems like a good case for turning the page if there ever was one.

These names never should have been used for global constants.  Pretty much
everyone agrees with that and has agreed for a long time.  This has only caused
problems/confusion.  It will continue to do so.  There is no good reason not to
get rid of this now.

Any code that wants to use a shorter name can bind one locally to the new, more
verbose name.  No big deal.

And that includes any 3rd-party code that the change might break.  This is a
smaller break than many that you guys effect from time to time.  Just do it and
don't look back.

The following 2007 thread is enlightening.  See what you all said 3 years ago.
;-) -
http://lists.gnu.org/archive/html/emacs-devel/2007-02/msg00414.html

But for some reason, that Web page only shows a small part of the thread (a
bug?).  This link shows some more:
http://lists.gnu.org/archive/html/emacs-devel/2007-02/msg00432.html

To get all of the thread you probably need to look at a Date sort:
http://lists.gnu.org/archive/html/emacs-devel/2007-02/index.html


FWIW - what I suggested way back then for `e':

> `numeric-constant-e', and adopt that (or similar) as the
> convention for numeric constants: `numeric-constant-pi', etc.
>
> However, I still prefer, in descending order or preference:
>
> 1. (exp 1) ; that is, drop the variable altogether
> 2. (e); that is, make it a function that does (exp 1) or
>    picks up the memoized value after doing (exp 1 once).

And to Eli's (2007) complaint that he wants the convenience of just typing `e':

EZ> Please don't: I frequently use Emacs to calculate trigonometric
EZ> expression; typing these monster names would make it very hard
EZ> for me to do that.
>
> Very hard for you?  Make a local binding.  If you need a short
> name for interactive or local program use, define one.  I see no
> reason to dedicate `e' and `pi' for this uncommon use (uncommon
> in both Emacs-Lisp files and interactive Emacs use).

I still feel that's right: anyone or any library that wants to use a short name
can easily bind one.




  reply	other threads:[~2010-09-17 22:55 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-16 13:25 e and pi Stefan Monnier
2010-09-16 13:44 ` Deniz Dogan
2010-09-16 15:37   ` Stefan Monnier
2010-09-16 13:47 ` Leo
2010-09-16 15:39   ` Stefan Monnier
2010-09-16 14:27 ` Helmut Eller
2010-09-16 15:44   ` Stefan Monnier
2010-09-16 18:52     ` Helmut Eller
2010-09-16 14:44 ` Jason Rumney
2010-09-16 22:54 ` Chong Yidong
2010-09-17  0:04   ` Deniz Dogan
2010-09-17  0:14   ` Wojciech Meyer
2010-09-17  7:00   ` David Kastrup
2010-09-17  8:09   ` Simon Leinen
2010-09-17  8:15     ` David Kastrup
2010-09-17  9:06       ` Stephen J. Turnbull
2010-09-17  9:21         ` David Kastrup
2010-09-17  9:47   ` Helmut Eller
2010-09-17 15:11   ` Stefan Monnier
2010-09-17 15:22     ` Lars Magne Ingebrigtsen
2010-09-17 15:56       ` Helmut Eller
2010-09-17 22:13         ` Stefan Monnier
2010-09-17 15:44     ` Wojciech Meyer
2010-09-17 15:50     ` Chong Yidong
2010-09-17 16:06       ` Wojciech Meyer
2010-09-17 16:18       ` Helmut Eller
2010-09-17 16:45         ` Glenn Morris
2010-09-17 17:14           ` Glenn Morris
2010-09-18 10:01         ` Eli Zaretskii
2010-09-18 10:21           ` Helmut Eller
2010-09-18 11:07             ` Eli Zaretskii
2010-09-18 11:26               ` Helmut Eller
2010-09-18 10:50           ` David Kastrup
2010-09-18 11:09             ` Eli Zaretskii
2010-09-18 14:27               ` Stephen J. Turnbull
2010-09-18 14:32               ` Andreas Schwab
2010-09-18 15:11           ` Drew Adams
2010-09-17 22:17       ` Stefan Monnier
2010-09-18  1:10         ` Chong Yidong
2010-09-18  8:30           ` Stefan Monnier
2010-09-18 19:10             ` Chong Yidong
2010-09-18 21:37               ` Uday S Reddy
2010-09-19  0:57                 ` Drew Adams
2010-09-18 13:43           ` Juanma Barranquero
2010-09-18 14:53             ` Stefan Monnier
2010-09-18 15:01               ` Lars Magne Ingebrigtsen
2010-09-18 16:00                 ` Stefan Monnier
2010-09-19 10:07               ` Juanma Barranquero
2010-09-17 16:14     ` Drew Adams
2010-09-18 15:12       ` tomas
2010-09-18 17:52         ` David Kastrup
2010-09-19 19:13           ` tomas
2010-09-17 23:35     ` Uday S Reddy
2010-09-17 16:55 ` Sam Steingold
2010-09-17 22:16   ` Stefan Monnier
2010-09-17 22:55     ` Drew Adams [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-09-17  4:20 MON KEY
2010-09-18  5:58 MON KEY
2010-09-18 14:50 ` Stefan Monnier
2010-09-19  2:03   ` MON KEY
2010-09-18 16:07 ` David De La Harpe Golden

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=01D72FFCE398424FAE945D3CD0DCDA6C@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.