Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Arithmetics Operator Priority

Name: Anonymous 2013-07-17 2:06

Is it really worth it?

Because common operations like (A+B)/2 are more readable without operator priority A+B/2. I know priority exists because of linear algebra liek A*X+B*Y+C, which otherwise require A*X+(B*X)+C, but in real life no one uses linear algebra beyond simple A*X+C.

So I propose prioritary equality for all operators.

Name: Anonymous 2013-07-17 8:20

Why is this mush more easier to read than other notations:
§1 (/ (+ A B) 2)
§2 (+ (* A X) (* B Y) C)

Everything was already described here:
https://en.wikipedia.org/wiki/Mathematical_operation
https://en.wikipedia.org/wiki/Logic_symbols
https://en.wikipedia.org/wiki/Logical_connective
https://en.wikipedia.org/wiki/Mathematical_Operators
https://en.wikipedia.org/wiki/Operator_%28programming%29

>>11
↖|↰|↸|⇖|↻|⇱|

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List