3 ms·
But @OriginalSyn has a pont. If you are reading code because something is misbehaving on a given configuration and you read if (some condition that doesn't h
by epidemian 14y ago
But @OriginalSyn has a pont. If you are reading code because something is misbehaving on a given configuration and you read
if (some condition that doesn't hold on that configuration) ...
You can avoid everything inside that if statement if you know that's not important for the case you're considering.
- mayanksinghal 14y agoBut if we want to avoid it, we would be required to already know what's inside the parenthesis. If we already knew what's inside it, putting condition before helps more as in that case (1) Either it's true and you have to parse the block or (2) It's false and you just jump to the end of it.