4 ms·
Also note that if you need more power than string dispatch and are already using Moose, there are match_on_type[1], MooseX-Types-VariantTable[2] and MooseX-Mult
by phaylon 16y ago
Also note that if you need more power than string dispatch and are already using Moose, there are match_on_type[1], MooseX-Types-VariantTable[2] and MooseX-MultiMethods[3] that already go a long way.
[1] http://search.cpan.org/dist/Moose/lib/Moose/Util/TypeConstraints.pm#Type_Constraint_Utilities http://search.cpan.org/dist/Moose/lib/Moose/Util/TypeConstra...
[2] http://search.cpan.org/dist/MooseX-Types-VariantTable/ http://search.cpan.org/dist/MooseX-Types-VariantTable/
[3] http://search.cpan.org/dist/MooseX-MultiMethods/ http://search.cpan.org/dist/MooseX-MultiMethods/