12.10 Thematic Takeaways
Binding and assignment are different concepts.
The pass-by-value and pass-by-reference parameter-passing mechanisms are widely supported in programming languages.
Parameter-passing mechanisms differ in either the direction (e.g., in, out, or in-out) or the content (e.g., value or address) of the information that flows to and from the calling and called functions on the run-time stack.
Lazy evaluation is a fundamentally different parameter-passing mechanism that involves string replacement of parameters with arguments in the body of a function (called β-reduction). Evaluation of those arguments is delayed until the value is required.
Implementing lazy arguments involves encapsulating an argument expression within the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access