why bother with operator precedence

Emuleomo emuleomo at paul.rutgers.edu
Thu Mar 29 02:35:09 AEST 1990


This is why people say that C code is *hard* to read!
Why say 
 a = b >> 4 + 5;
when you can say
 a = b >> (4 + 5);

Even DMR may have to dive into his manual once in a while if he sees the
former expression, but a C neophyte fully understands what the latter does!
Well I guess the former is why we have masochists in society!


--Emuleomo O.O. (emuleomo at yes.rutgers.edu)
-- 
*Nothing* is hard.   If it looks hard, you are looking at it the hard way!



More information about the Comp.lang.c mailing list