Search found 1 match

by zeroandnull
Sat Apr 18, 2015 9:07 pm
Forum: General/Off-Topic
Topic: Equality vs. Assignment
Replies: 5
Views: 7677

Re: Equality vs. Assignment

dandymcgee wrote:I would *never* write "if(x == false)" in my own code, I'd just use "if(!x)".
superLED wrote:One time I was sick, I actually wrote if(x != true)
At the end of the day it doesn't matter because your compiler will optimize away stuff like that.