Personal tools

Short-circuiting

From HaskellWiki

Jump to: navigation, search

The term short-circuiting is used for avoiding the computation of results that are not needed anyway.

E.g. in
False && a
the second operand needs not to be evaluated because the result is
False
in any case.

So short-circuiting is somehow a synonym to lazy evaluation.