4 ms·
The original bug would have been prevented by not overusing parentheses. This: if (_someLongNamedVar != FooLongNameEnum::Unknown && _someLongNamedMap.coun
by pwdisswordfishc 4y ago
The original bug would have been prevented by not overusing parentheses. This:
if (_someLongNamedVar != FooLongNameEnum::Unknown && _someLongNamedMap.count(_someLongNamedVar) == 0)
does exactly what it’s supposed to.
- LudwigNagasena 4y agoThat is what happens when people zealously try to not be "too clever". They make everything as explicit as possible for "clarity" even when it obviously hinders it for anyone who cared to learn the most basic things about the language they use.
- shrimp_emoji 4y ago>the most basic things about the language they use This is C++. The most basic thing has been deprecated but is still supported for backwards compatibility.