Today I read through the "Mozilla Coding Style Guideline" and I found a point I am nor sure about.
What do they mean with
Do not compare x == true or x == false. Use (x) or (!x) instead. x == true, in fact, is different from if (x)!
I am not sure how these two methods are different.
Aucun commentaire:
Enregistrer un commentaire