3 ms·
Negative flags are almost always a bad choice for a name. I'd rather see if (obj.IsFoo) { ... } than if (! obj.IsNotFoo) { ... } Still, changing a name is m
by StrawberryFrog 17y ago
Negative flags are almost always a bad choice for a name.
I'd rather see
if (obj.IsFoo) { ... }
than
if (! obj.IsNotFoo) { ... }
Still, changing a name is minor as far as design goes.