What are some good examples of using pass by name?
Posted
by
Paul
on Programmers
See other posts from Programmers
or by Paul
Published on 2010-12-15T07:55:52Z
Indexed on
2012/09/06
9:49 UTC
Read the original article
Hit count: 238
programming-languages
When I write programs I using pass by value or pass by reference always seem to be logical methods. When learning about different programming languages I came across pass by name.
Pass by name is a parameter passing method that waits to evaluate the parameter value until it is used. See Stack Overflow pass by name question for more information on the method.
What I would like to know is: what are some good examples and/or reasons to use pass by name and should it be re-introduced into some more modern languages.
© Programmers or respective owner