Short-circuit evaluation
Meaning in software engineering, with examples
In software engineering, short-circuit evaluation means: Evaluating only as much of an expression as needed to determine its result, skipping an operand when possible.
In Turkish: kısa devre değerlendirmesi
How it is used
Discuss it with logical operators and guards. Whether operands are skipped depends on the language and operator.
Example sentences
The null check uses short-circuit evaluation to avoid reading a missing object.
The second operation is skipped when the first condition already makes the conjunction false.
With short-circuit evaluation, the backup lookup runs only if the first lookup fails.
Here the skipped work is an alternative lookup, so its side effects may not occur.
Common collocations
- use short-circuit evaluation
- rely on short-circuit evaluation
Related terms
More terms: Programming Concepts
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
