News for hackers. Stuff that matters.
Re:Which one will execute faster, if(flag==0) or if(0==flag)? by chromatic on Saturday January 08, 2011 @12:07AM (#2082311)
Personally I'm more against "=" being the assignment operator, which should be ":=".

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.

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 =.