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

Why to use Moose roles ever?

Thread Next
Victor Porton
August 10, 2016 13:00
Why to use Moose roles ever?
Message ID:
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 Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About