develooper Front page | perl.moose | Postings from August 2016

Re: Why to use Moose roles ever?

Thread Previous
Jed Lund
August 10, 2016 14:44
Re: Why to use Moose roles ever?
Message ID:

My experience has always been that Moose is as flexible as possible without
causing fundamental logical conflicts (And their companion hard to debug
issues).  It is important to note that a Moose Role is not a one for one
match to other programming languages implementations for a role.

The question you are asking also falls in the line of a bigger question
that is partially outside of the scope of Moose implementation.

Are you aware of the following two pieces of Moose documentation?  The may
help to resolve some specifics around any specific implementations.

Best Regards,


On Wed, Aug 10, 2016 at 6:00 AM, Victor Porton <> wrote:

> Moose roles have some limitations, such as inability to override a
> method in a class which "with"es the role.
> But I can use an abstract base class instead of a role.
> Are there any real situations where roles are better than base classes?
> With examples, please.

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About