Re: Dangling else
- From: SM Ryan <wyrmwif@xxxxxxxxx>
- Date: 5 Mar 2006 02:16:55 -0500
"Russ Cox" <rsc@xxxxxxxxx> wrote:
# > [I don't know anyone who thinks that C's million levels of precedences
# > are a good idea. Back in the 1950s, it seemed reasonable in Fortran
# > for exponentiation to bind tighter than multiplication and division
# > which bound tighter than addition and subtraction, in line with most
# > mathemetical notation, and then it got away from us. How do you like
# > the APL rule that everything binds and associates the same? -John]
#
# I haven't used APL much, but troff expressions have the same
# rule--everything left to right, equal precedence--and there I find it
Actually APL is right to left,
1+2*3-1
is
1+(2*(3-(1)))
--
SM Ryan http://www.rawbw.com/~wyrmwif/
There are subtler ways of badgering a witness.
.
- Prev by Date: Re: Dangling else
- Next by Date: Re: Dangling else
- Previous by thread: Re: Dangling else
- Next by thread: Re: Dangling else
- Index(es):