Exceptional coding style
Mehrdad
wfunction at hotmail.com
Fri Jan 18 02:40:49 PST 2013
On Friday, 18 January 2013 at 10:30:33 UTC, deadalnix wrote:
> If you believe you know operator precedence, you are probably
> wrong. And even if you are right, most other programmer don't.
They're not /that/ bad...
+ - * / % are like in math
<< >> are harder, but all you need is to recall that cout <<
x + 2;
works as written
| & are just like in math (or is addition, and is
multiplication)
^ is in between | and &
|| && are just like in math (or is addition, and is
multiplication)
More information about the Digitalmars-d
mailing list