What does First Normal Form mean?
cargocultcode.com76 pointsby goto11121 comments
((window.location).href) == foo;
is more readable than: window.location.href == foo; if (a==b & c==d) ...
but of course, this means you can't write bitwise checks like this: if (addr & mask == 0) ...
The problem could theoretically have been solved when the shortcut operators were introduced, by increasing the precedence of & and | to be higher than comparisons, but have the shortcut operators be lower. So you would be able to write both: if (a==b && b==c) ...
if (addr & mask == 0) ...
But this was not done due to concerns of backward compatibility with existing code, since now every expression using the old pattern would subtly change semantics. E.g. the first example would now be parsed as: if ((a==(b & c))==d) ...