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

Why to use Moose roles ever?

Thread Next
From:
Victor Porton
Date:
August 10, 2016 13:00
Subject:
Why to use Moose roles ever?
Message ID:
1470834033.22347.2.camel@narod.ru
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About