2 ms·
It's the same idea, that the && short circuits. bool dirty = ...; bool success = doExpensiveCalculation(...); vs if (dirty && doExpensiveCalcula
by maccard 4y ago
It's the same idea, that the && short circuits.
bool dirty = ...;
bool success = doExpensiveCalculation(...);
vs
if (dirty && doExpensiveCalculation)
{