3 ms·
LoL! languages that support short-circuit evaluation will exit the conditional evaluation as soon as they reach a condition that is true, without evaluating sub
by say_it_as_it_is 3y ago
LoL! languages that support short-circuit evaluation will exit the conditional evaluation as soon as they reach a condition that is true, without evaluating subsequent conditions
... it also makes branch predictions more accurate