Show quoted text> Like I said, :method is a built-in part of Perl, so namespace::clean
> already has sufficient information upon detecting that particular crazy
> attribute to skip over its corresponding sub. It needn't be a central
> feature of namespace::clean; it would just be maximizing what it can do
> while keeping within the bounds of its lighter set of dependency (when
> compared to namespace::autoclean).
Currently, namespace::clean has a very simple, very specific, and well
documented behaviour - it cleans everything in scope when it was
imported, unless you explicitly ask it not to.
You'd be welcome to either create a namespace::clean::attributeaware or
similar that does what you're talking about here, or to start a new
ticket proposing an explicitly turned-on feature that asks for such subs
to be excluded from the cleaning process - i.e. some sort of -foo option
- although I wouldn't expect any of us to write the patch to add it
ourselves since :method has pretty much entirely failed to catch on so
it's not relevant to any of our current real world code.
Either way though, this ticket is proposing doing it automatically,
which is definitely not going to happen since it would compromise the
clarity of namespace::clean invocation (autoclean and other
derivatives/subclasses use heuristics, namespace::clean never has); as
such I'm marking it rejected.