Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Re: Reference to a function

by oylee (Pilgrim)
on Jul 25, 2003 at 21:54 UTC ( [id://277989]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Reference to a function
in thread Reference to a function

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://277989]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-29 05:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found