From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division Date: Sun, 07 Sep 2008 22:34:34 +0200 Message-ID: <48C43ADA.1070001@gmail.com> References: <878wu3j4k2.fsf@gmail.com> <86wshn3df0.fsf@blue.stonehenge.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1220819697 25892 80.91.229.12 (7 Sep 2008 20:34:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Sep 2008 20:34:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Randal L. Schwartz" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 07 22:35:52 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KcQz9-000659-GB for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2008 22:35:51 +0200 Original-Received: from localhost ([127.0.0.1]:51735 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcQy9-0003Xp-Sb for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2008 16:34:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcQy5-0003Wx-I2 for emacs-devel@gnu.org; Sun, 07 Sep 2008 16:34:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcQy4-0003WW-4B for emacs-devel@gnu.org; Sun, 07 Sep 2008 16:34:45 -0400 Original-Received: from [199.232.76.173] (port=42528 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcQy3-0003WR-Um for emacs-devel@gnu.org; Sun, 07 Sep 2008 16:34:43 -0400 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]:34560) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KcQy3-0002cZ-Ez for emacs-devel@gnu.org; Sun, 07 Sep 2008 16:34:43 -0400 Original-Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:64399 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KcQy1-0007ib-5u; Sun, 07 Sep 2008 22:34:42 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <86wshn3df0.fsf@blue.stonehenge.com> X-Enigmail-Version: 0.95.7 X-Antivirus: avast! (VPS 080907-0, 2008-09-07), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KcQy1-0007ib-5u. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1KcQy1-0007ib-5u 5d862e0cc7fcb560ab5d2ce3277f3935 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:103647 Archived-At: Randal L. Schwartz wrote: >>>>>> "Stefan" == Stefan Monnier writes: > > Stefan> I think Calc is plainly wrong is giving higher precedence to the > Stefan> multiplication because it's completely non standard. But since I don't > Stefan> use Calc much and since it's been that way for a while, I won't fight > Stefan> for it. > > Given the original author's mathematics bias, it made sense (to me, as > an early tester and contributor) that: > > 2 * 3 / 4 * 5 > > would be parsed as > > (2 * 3) / (4 * 5) > > in a mathematical sense. > > Admittedly, if you're a computer-science guy and not a math guy, this might > seem initially odd. It is really odd if you happen to know math.