[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add support for log2.
From: |
Rüdiger Sonderfeld |
Subject: |
Re: [PATCH] Add support for log2. |
Date: |
Thu, 20 Jun 2013 14:56:40 +0200 |
User-agent: |
KMail/4.10.3 (Linux/3.8.0-23-generic; KDE/4.10.3; x86_64; ; ) |
On Wednesday 19 June 2013 19:36:14 Paul Eggert wrote:
> Elisp already has a syntax for log2 (X), namely (log X 2),
> so how about the following more-conservative change?
> This avoids adding the "log2" function to the Emacs namespace,
> thus no need for a NEWS entry, doc change, etc.
>
> (I know the same argument applies to log10, but
> that horse left the barn long ago.)
I would be fine with that. Common Lisp has no log2 or log10 either, so it
probably makes sense. However I think in that case we should consider
deprecating log10 for the sake of consistency. The existence of a log10 seems
to imply a lack of a log2.
Regards,
Rüdiger