Lazy evaluation: Difference between revisions

Content added Content deleted
(gotta link to Haskell)
m (Removed from enc)
Line 1: Line 1:
[[Category:Encyclopedia]][[Category:Programming Paradigms]]'''Lazy evaluation''' describes a strategy of expression evaluation when the evaluation is done as late as possible. The opposite to lazy evaluation is '''eager evaluation''', when the evaluation is performed as early as possible.
[[Category:Programming Paradigms]]'''Lazy evaluation''' describes a strategy of expression evaluation when the evaluation is done as late as possible. The opposite to lazy evaluation is '''eager evaluation''', when the evaluation is performed as early as possible.


Usually the programming language do not specify laziness leaving the decision to optimization.
Usually the programming language do not specify laziness leaving the decision to optimization.