Personal tools

Short-circuiting

From HaskellWiki

Revision as of 07:43, 24 January 2008 by Lemming (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.