IT lexicon › Programming › Call by name

Call by name

Programming På svenska → Updated: 2026-11-12

Parameter-passing mechanism in which the argument is re-evaluated each time the parameter is referenced within the function, not just once at call time.

Call by name was introduced in Algol 60 and is the opposite of call by value. Instead of copying the argument's value or a reference to it, the language passes a "recipe" for computing the argument. If the function references the parameter ten times, the argument is evaluated ten times. This can be efficient for expressions used only once, but inefficient and surprising when the same computation repeats. Algol 60 was nearly alone in this design; later languages preferred call by value or call by reference.

← Back to the lexicon