in reply to Re^3: Managing capture
in thread Managing capture
Yes, that would work. However, the drawbacks of this to me are:
- the check happens at runtime, not compiletime
- it requires each method taking a callback to implement the cycle check. that might be in 3rd party code and so require additional wrapping etc.
In Section
Seekers of Perl Wisdom