Fix Left-Associative Compound Conditional Statements!!

Till Schneidereit till at tillschneidereit.net
Thu Sep 24 14:54:43 UTC 2015


On Thu, Sep 24, 2015 at 4:50 PM, Joseph Groseclose <jgrosecl49 at gmail.com>
wrote:

> Isn't this logic theoretically broken? If any existing code is using it,
> the code that is using it is probably performing an invalid or inaccurate
> operation and therefore this would only break that code so much as it was
> already not functioning as expected?
>

There are many examples of code that doesn't really do what the author
thought it does, but just so happens to do what's required to produce a
correct result in combination with other, potentially equally "incorrect"
code. "Fixing" the logic here would mean breaking the overall program.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150924/c4a52bf2/attachment.html>


More information about the es-discuss mailing list