Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: closures: anonymous subs vs function templates?

by Laurent_R (Canon)
on Dec 22, 2014 at 07:56 UTC ( [id://1110997]=note: print w/replies, xml ) Need Help??


in reply to Re^3: closures: anonymous subs vs function templates?
in thread closures: anonymous subs vs function templates?

I of course did not want to promote function templates for such use cases, but just tried to see how they could work out. I definitely agree that the approach with references to anoonymous subroutines is vastly superior, especially in view of your first remark: a new closure is destroying the previous one.
  • Comment on Re^4: closures: anonymous subs vs function templates?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1110997]
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: (7)
As of 2024-04-19 16:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found