Make sure there aren't a lot of anonymous functions that are hard to reuse.
I use a lot of anonymous functions, and that doesn't make it hard to reuse them. On the contrary, I do it to easier reuse code. I use it as an local abstraction technique, and we agree on that abstraction is good, while I at the same time don't want to pollute the global namespace for a function that would only be confusing there since it only has value where it is. In the future, if that piece of code has value outside the lexical scope it's defined in, it's easy to move it out. Sometimes these functions are closures, sometimes they're not.
Using anonymous functions is a good sign for me, if done right. I see it as the programmer appreciates abstractions and tight scoping.
ihb
Read argumentation in its context!
In reply to Re^2: Perl Code Quality
by ihb
in thread Perl Code Quality
by Micz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |