Subject: | Moose roles report requirements failures one at a time |
Roles should report all requirement failures at once, rather than one at
a time. Example:
#!/usr/bin/env perl
{
package Some::Role;
use Moose::Role;
requires qw/this that the other thing/;
}
{
package Some::Package;
use Moose;
with 'Some::Role';
}
This reports "'Some::Role' requires the method 'the' to be implemented
by 'Some::Package' at ..."
Once you add the "the" method, it then tells you you're missing "other"
(curious sorting here) and so on. This led to a painful "death by a
thousand cuts" today :)
Cheers,
Ovid