RE: (0 == foo), rather than (foo == 0)
From: Godbole, Amarendra (GE Consumer & Industrial)
Date: Wed Mar 10 2004 - 23:09:23 EST
> As a result, using the former just tends to increase peoples
> confusion by making code harder to read, which in turn tends
> to increase the chance of bugs.
Kindly don't insult the kernel developers' with such statements. ;-)
They are smart enough to understand such constructs, which, I
deduce from what someone said earlier in this thread. So no
confusion would prevail here...[take it in a lighter vein folks, I
am kidding.]
> So don't do it. The kind of bug that the "0 == x" syntax
> protects against is LESS LIKELY to happen than the kind of
> bug it tends to cause.
Agreed and understood. Thanks.
Sincere apologies for my previous ``non-text wrapped'' post. This
won't happen henceforth.
Cheers,
Amarendra
--
Picture Perfect Engineering / These opinions are mine.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/