4 ms·
I use negative flags (but not negations) so that I can break out early with early returns ... if (isFeatureDisabled()) { // do not proceed return }
by palerdot 6y ago
I use negative flags (but not negations) so that I can break out early with early returns ...
if (isFeatureDisabled()) {
// do not proceed
return
}
But still the style guide holds, since there is no negations ...
- WalterBright 6y agoI do try to reframe as different words, such as "right" instead of "notLeft", to eliminate negations.