4 ms·
All they really did was flatten the if/else to remove a few layers of nesting. It's not a bad idea in the abstract (not suitable everywhere of course), even if
by hansvm 2y ago
All they really did was flatten the if/else to remove a few layers of nesting. It's not a bad idea in the abstract (not suitable everywhere of course), even if you don't like their particular implementation.
// Original
if a
if b
else
else
if b
else
// New
if not a and not b
if not a and b
if a and not b
if a and b