From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jay Belanger Newsgroups: gmane.emacs.devel Subject: Re: Calc: `*' binds more strongly than `/' Date: Wed, 25 Apr 2007 23:06:48 -0500 Message-ID: <87647j93tz.fsf@gmail.com> References: <87y7kvxj6p.fsf@arcor.de> <87odlrkn74.fsf@truman.edu> <87tzvhcul9.fsf@stupidchicken.com> <863b2z2mma.fsf@blue.stonehenge.com> <55350.128.165.123.18.1176926533.squirrel@webmail.lanl.gov> <86ps5zuwmi.fsf@blue.stonehenge.com> <87ps5zi1h2.fsf@truman.edu> <462C8EA2.9090003@gnu.org> <87ejmbdr1x.fsf@truman.edu> <87d51sqinn.fsf@gmail.com> Reply-To: jay.p.belanger@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1177560433 3597 80.91.229.12 (26 Apr 2007 04:07:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Apr 2007 04:07:13 +0000 (UTC) Cc: jay.p.belanger@gmail.com To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 26 06:07:05 2007 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 1HgvG4-0004hM-Jr for ged-emacs-devel@m.gmane.org; Thu, 26 Apr 2007 06:07:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HgvLg-000295-AT for ged-emacs-devel@m.gmane.org; Thu, 26 Apr 2007 00:12:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HgvLb-00028a-NN for emacs-devel@gnu.org; Thu, 26 Apr 2007 00:12:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HgvLa-000287-9n for emacs-devel@gnu.org; Thu, 26 Apr 2007 00:12:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HgvLa-000284-3T for emacs-devel@gnu.org; Thu, 26 Apr 2007 00:12:46 -0400 Original-Received: from s4.cableone.net ([24.116.0.230]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HgvFs-0004hg-CN for emacs-devel@gnu.org; Thu, 26 Apr 2007 00:06:52 -0400 Original-Received: from localhost.localdomain (unverified [24.117.100.184]) by S4.cableone.net (CableOne SMTP Service S4) with ESMTP id 105100544 for multiple; Wed, 25 Apr 2007 21:06:50 -0700 In-Reply-To: (Stefan Monnier's message of "Wed\, 25 Apr 2007 23\:35\:43 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.98 (gnu/linux) X-NotAscii: charset=us-ascii X-IP-stats: Incoming Last 1, First 22, in=14, out=0, spam=0 X-External-IP: 24.117.100.184 X-Abuse-Info: Send abuse complaints to abuse@cableone.net X-detected-kernel: Linux 2.6 (newer, 3) 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:70150 Archived-At: Stefan Monnier writes: >> The reason for Calc's current behavior is because Dave Gillespie, >> Calc's author, thought of "a b / c d" as representing >> a b >> --- >> c d This is what Dave said when I asked him about it. (He actually said he thought of the first version as an alternate way of writing the second.) > I expect the reason is slightly different: it's that the same rule is used > for "a * b / c * d" as for "a b / c d". Exactly; the motivation was for the implicit multiplication, but he didn't want to give implicit and explicit multiplication different precedences. > The "juxtaposition operator" is traditionally assumed to have the > highest precedence, so it of course parses as "(a b)/(c d)". I hadn't realized that before, but it does seem pretty standard (but not quite universal -- I read that the TI-85 and TI-86 treat juxtaposition differently). How interesting. Jay