Encyclopedia > Eager evaluation

  Article Content

Eager evaluation

Eager evaluation is the evaluation model in most traditional programming languages.

In eager evaluation an expression is evaluated as soon as it gets bound to a variable. This is generally more efficient as a low-level strategy in simple programming languages, as it removes the need to build and managed intermediate data structures representing unevaluated expressions.

The low-level optimisation of forced eager evaluation prevents the higher-level optimisations and greater expressiveness that can be obtained from lazy evaluation in more sophisticated programming languages, which generally allow the implementation of both lazy and eager semantics.

See also: speculative execution[?].



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
U.S. presidential election, 1804

... Votes) Thomas Jefferson (W) 162 Democratic-Republican George Clinton (162) Charles C. Pinckney[?] 14 Federalist Rufus King (14) Other elections: ...

 
 
 
This page was created in 21.4 ms