mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-07-28 15:59:07 +02:00
11 lines
521 B
TeX
11 lines
521 B
TeX
\subsubsection{Evaluation strategies}
|
|
Evaluation strategies formalize how programming languages evaluate the code.
|
|
Most of the commonly used programming languages use \textit{eager evaluation}, whereas functional programming languages tend to prefer \textit{lazy evaluation}
|
|
|
|
\paragraph{Lazy Evaluation}
|
|
In Lazy Evaluation, expressions are substituted until all possible values are substituted and the expression is then evaluated.
|
|
|
|
At the exam, it is likely that one such task will appear.
|
|
|
|
\paragraph{Eager Evaluation}
|