Re:Which one will execute faster, if(flag==0) or if(0==flag)?
by redthrowaway on Saturday January 08, 2011 @01:18AM
(#2082439)
That's a pretty condescending thing to say. To answer your rhetorical question, we are taught from elementary school to say, "x = 3", not "3 = x". Yes, it's the same, but it's jarring.
[ Parent
| on HN ]
Re:Which one will execute faster, if(flag==0) or if(0==flag)?
by Jach on Saturday January 08, 2011 @02:22AM
(#2082542)
I remember getting marked off once in either my algebra 1 or geometry class for leaving some answers in the form "3 = x". (What, you gave me an equation of "5 = 3x - 4"! It's harder to follow the work you make me do if I suddenly swap everything.) Anyway, I never found it jarring, though I can see why others might. (And if you've never had exposure to TI basic.. 3->x.)
Re:Which one will execute faster, if(flag==0) or if(0==flag)?
by redthrowaway on Saturday January 08, 2011 @04:47AM
(#2082753)
TI BASIC kinda reminds me of assembly in that way.