Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Real life uses for closures.

by zwon (Monsignor)
on Feb 12, 2013 at 05:42 UTC ( #1018302=note: print w/ replies, xml ) Need Help??


in reply to Real life uses for closures.

I often use closures when I need to pass a callback as a function argument. I'm not sure what do you mean by delegates, but it is always currying or partial application.

Note also, that state doesn't support initialization in list context, so when I need this I, again, use closures.


Comment on Re: Real life uses for closures.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2014-09-20 05:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (153 votes), past polls