Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: Managing capture

by jbert (Priest)
on Feb 19, 2013 at 13:01 UTC ( [id://1019545]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Managing capture
in thread Managing capture

> when doing reviews you should be checking for cycles, esp with anonymous subs

I agree with this very much. But I think it is a hard problem. The intention of this pragma would be to make cycles caused via capture easier to spot in code review.

Replies are listed 'Best First'.
Re^5: Managing capture
by Anonymous Monk on Feb 19, 2013 at 13:19 UTC

    I agree with this very much. But I think it is a hard problem. The intention of this pragma would be to make cycles caused via capture easier to spot in code review.

    Its not really that hard :) Devel::Cycle - Find memory cycles in objects

    It is easy to modify perlcritic ProhibitConditionalDeclarations to alert yo to closures for a code , and then you can further investigate to decide if they're really trouble, or ok

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (7)
As of 2024-04-19 10:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found