Richard Heathfield said:
(a) Those aren't equality expressions. There is no !== operator, no =>
operator, no risk of accidentally assigning instead of comparing;
(b) I see no logical difference between x != 0 and 0 != x, so I don't
understand the point you're trying to make.
Certainly x != 0 and 0 != x are semantically exactly equivalent.
But to me, and to a lot of other people, x != 0 looks right and
0 != x looks -- well, not wrong exactly, but awkward. I don't
have any real problem reading it, but it does cause me to stumble
mentally, just briefly.
It's very similar to the mental stumble I experience when I read
a top-posted Usenet article; all the information is there, and I
can read and understand it, but it's presented in an order that I
find unnatural.
I know that some people don't see the difference. Well, obviously
you see the difference, but you don't find either form more awkward
than the other.
More generally, when I see x != y, I think of x as the thing I'm
asking about, and "!= y" as the question I'm asking about it. When I
think about it that way, x != 0 makes sense. I have a quantity x,
and I don't know everything about it, so I have to ask: is it unequal
to 0? When I see 0 != x, it's like I start with the quantity 0,
something I already know all about -- and now I'm asking for more
information about 0 (is it unequal to x?).
Yoda-style word order fan of I am not.
I'm not suggesting that the way you think about it is wrong.
In fact, your point of view is probably closer to mathematical
reality than mine. But perhaps this will help you understand a
bit better why some of us dislike the 0 != x form.