Tag: Lazy Parameter Evaluation

Languages such as C/C++ and Java follow anĀ “eager” argument evaluation approach, where function arguments are evaluated before the function is entered. Of course, there are idioms and tricks that one can use to force “lazy” evaluation. The primary benefit of “lazy” parameter evaluation is that the parameter is evaluated only when it is used and […]
Recent Comments