3 ms·
interesting. > where developers misunderstood the precedence of operators, particularly > unary operators like !, + and typeof. if (!whitelist.ha
by _a_a_a_ 3y ago
interesting.
> where developers misunderstood the precedence of operators, particularly
> unary operators like !, + and typeof.
if (!whitelist.has(specifier.imported.name) == null) {
return;
}
which is exactly why I always bracket stuff, almost to a fault. I've seen almost exactly this in a piece of shipped code which meant a crucial condition would never trigger. Cost of that? Possibly hundreds of millions or even higher. I'm not exaggerating.
This is why I totally hate the tower of precedence in C-style languages.