Subject: | handles entries pollute Moose::Object with empty globs |
Any entry in an attribute's handles param will cause a glob (empty) to be created in Moose::Object's stash. This is pretty minor, but seems like it should be avoided.
Test case attached.
Subject: | handles-moose-object-pollution.t |
use strict;
use warnings;
use Test::More;
{
package Some::Package;
use Moose;
has '_results' => (
is => 'rw',
handles => {
results => 'elements',
},
);
}
ok !exists $Moose::Object::{results},
"handles doesn't create entries in Moose::Object's stash";
done_testing;