Syntactic Confectionery Delight | |
PerlMonks |
Re: Re: Re: Reference to a functionby oylee (Pilgrim) |
on Jul 25, 2003 at 21:54 UTC ( [id://277989]=note: print w/replies, xml ) | Need Help?? |
There's also call-by-need, which is basically just call-by-name with cached lazy evaluation. Basically, turn all your parameters into thunks (closure of no arguments) so they don't get evaluated when the method is invoked, and then evaluate them once and only once if they are referenced in the method.
This post made for full-on nitpicking compliance :). Allen
In Section
Seekers of Perl Wisdom
|
|