[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Calc: `*' binds more strongly than `/'
From: |
Stefan Monnier |
Subject: |
Re: Calc: `*' binds more strongly than `/' |
Date: |
Thu, 19 Apr 2007 12:10:11 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.94 (gnu/linux) |
>> I don't think so.
>>
>> Theorem: the "/" is *not* a horizontal bar.
>> Proof:
>>
>> What parse tree do you expect from A+B/C+D?
>>
>> Is it the same as the one you expect from
>>
>> A + B
>> -----
>> C + D
>>
>> QED.
> The "/" there can certainly be considered a horizontal bar: under the B,
> and over the C.
> B
> A + --- + D
> C
Then we're back to precedence and the question becomes why don't you
consider A*B/C*D as
B
A * --- * D
C
In any case, I still haven't heard any concrete reason why the non-standard
behavior of calc is preferred to the more common behavior. Neither is
perfect because there is no such thing, but one of them is sufficiently
surprising to deserve big warnings in the Calc doc and the Org doc, whereas
the other would be "business as usual".
Stefan
- Re: Calc: `*' binds more strongly than `/', (continued)
- Re: Calc: `*' binds more strongly than `/', Jay Belanger, 2007/04/14
- Re: Calc: `*' binds more strongly than `/', Chong Yidong, 2007/04/15
- Re: Calc: `*' binds more strongly than `/', Stefan Monnier, 2007/04/15
- Re: Calc: `*' binds more strongly than `/', Randal L. Schwartz, 2007/04/17
- Re: Calc: `*' binds more strongly than `/', Stefan Monnier, 2007/04/17
- Re: Calc: `*' binds more strongly than `/', Kim F. Storm, 2007/04/18
- Re: Calc: `*' binds more strongly than `/', Stefan Monnier, 2007/04/18
- Re: Calc: `*' binds more strongly than `/', Davis Herring, 2007/04/18
- Re: Calc: `*' binds more strongly than `/', David Kastrup, 2007/04/18
- Re: Calc: `*' binds more strongly than `/', Davis Herring, 2007/04/18
- Re: Calc: `*' binds more strongly than `/',
Stefan Monnier <=
- Re: Calc: `*' binds more strongly than `/', Randal L. Schwartz, 2007/04/20
- Re: Calc: `*' binds more strongly than `/', Stefan Monnier, 2007/04/20
- Re: Calc: `*' binds more strongly than `/', Jay Belanger, 2007/04/20
- Re: Calc: `*' binds more strongly than `/', Miles Bader, 2007/04/21
- Re: Calc: `*' binds more strongly than `/', Christian Schlauer, 2007/04/22
- Re: Calc: `*' binds more strongly than `/', Christian Schlauer, 2007/04/22
- Re: Calc: `*' binds more strongly than `/', Jay Belanger, 2007/04/22
- Re: Calc: `*' binds more strongly than `/', Jason Rumney, 2007/04/23
- Re: Calc: `*' binds more strongly than `/', Kim F. Storm, 2007/04/23
- Re: Calc: `*' binds more strongly than `/', Jay Belanger, 2007/04/23