RECENT POSTS

P5-moosex-role-strict

May 26, 2018

Use strict ‘roles’

When using MooseRole, a class which provides a method a role provides will silently override that method. This can cause strange, hard-to-debug errors when the role’s methods are not called. Simple use MooseXRoleStrict instead of MooseRole and overriding a role’s method becomes a composition-time failure. See the synopsis for a resolution.

WWW http//search.cpan.org/dist/MooseX-Role-Strict/