The moose is very cute, but sometimes simple typos can cause exciting hair exciting long stacks, from my point of view, zero useful content.
So, are there any tools to interpret this explosion into something useful?
In particular, for classes using simple Moose, Moose + MooseX :: Method :: Signatures and MooseX :: Declare.
Tools should be helpful in developing to catch these typos or typing problems that make things just not work.
===========================
The following sentence below, I use this not quite modular module, but it slightly reduces my headaches, more ideas are welcome:
package MooseX::QuietCarping; # Not actually a Moose thing, but helpful for Moose. # calm Moose-internal stacktraces down a little use Carp; my %retain = (); sub import { my $class = shift; $retain{$_}++ for @_; } CHECK { for (sort keys %INC) { s{\.pm$}{}; s{[/\\]}{::}g; # CROSS PLATFORM MY ARSE next if $retain{$_}; $Carp::Internal{$_}++ if /^(?:Class::MOP|Moose|MooseX)\b/ } %retain = (); # don't need this no more } 1;
perl moose
Alex
source share