Tags: #if #evaluation #vs #readability
if statement - short circuit evaluation vs readability
http://stackoverflow.com/questions/40081279/if-statement-short-circuit-evaluation-vs-readability
if statement - short circuit evaluation vs readability
http://stackoverflow.com/questions/40081279/if-statement-short-circuit-evaluation-vs-readability
Stackoverflow
if statement - short circuit evaluation vs readability
Sometimes, an if statement can be rather complicated or long, so for the sake of readability it is better to extract complicated calls before the if.
e.g. this:
if (SomeComplicatedFunctionCall() ||
e.g. this:
if (SomeComplicatedFunctionCall() ||