Personal tools

Talk:Non-strict semantics

From HaskellWiki

Revision as of 18:02, 28 November 2011 by Dlthomas (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

While operators in Haskell are functions, the choice of an operator for the example is a poor one. One can, in fact, write

1 || infinite_loop()

in C and have it terminate successfully, precisely because || has non-strict ("short-circuited") semantics in C.