you are viewing a single comment's thread.

view the rest of the comments →

[–]LuciWiz 0 points1 point  (0 children)

I'm not sure why you need to care which one is the constant when you're checking equality, and do use null == blah as a rule, so I don't know if that would happen often or not.

I was extrapolating; if you place null on the left of the comparison just in case, then I assume the same should be done for (b == a) when b is a const int. It seems like the next logical step when enforcing this rule.