Linked by Kaj-de-Vos on Thu 20th Dec 2012 00:22 UTC
Thread beginning with comment 546070
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
From the horses' mouth, so to speak, on math precedence in REBOL:
http://www.rebol.com/r3/docs/concepts/math-precedence.html
Your link's dead, but you can get to it here:
http://webcache.googleusercontent.com/search?q=cache:cm.bell-labs.c...
The only issue I can find in the document is that boolean and bitwise operators have a somewhat weird relationship (boolean comes before bitwise.) The example being:
if((a&mask)==b)
the second set of parenthesis are required.




Member since:
2012-10-17
I absolutely disagree. There are 2 choices to my mind:
1. Use standard precedences for arithmetic, comparison and logic operators as defined in common mathematical usage.
2. Have everything use standard precedences.
C's implementation is actually flawed - Ritchie himself acknowledges so (http://cm.bell-labs.com/cm/cs/who/dmr/chist.html), so blindly copying that seems the wrong approach.