Re:Which one will execute faster, if(flag==0) or if(0==flag)?
by redthrowaway on Saturday January 08, 2011 @12:29AM
(#2082356)
In general, I just don't like hitting shift, and so am opposed to :=.
Re:Which one will execute faster, if(flag==0) or if(0==flag)?
by Jach on Saturday January 08, 2011 @02:11AM
(#2082531)
Let's compromise and make it ;=.
Re:Which one will execute faster, if(flag==0) or if(0==flag)?
by redthrowaway on Saturday January 08, 2011 @06:31AM
(#2082871)
I'd rather if the compiler simply determined whether or not it was used as an assignment or comparison and just go with a single =.
The problem with := is that you run the risk of the Pascal trap, in that no language which uses := for assignment has ever become more popular than Pascal.