Dmitri,
It seems like you are looking to use Roles here in a way similar to
Java Interfaces.
Yes, that is a sane usage of them.
- Stevan
On Apr 29, 2009, at 11:45 AM, Dmitri wrote:
I have base class "Contact" that bunch of other classes inherit
from. It ended up to be abstract class with set of properties and
no methods.
Is it better approach to make it a role? What would be disadvantages
of both approaches?
My goal was to set up Moose interface classes that map to underlying
postgres tables as close as possible. As there is 'contact' base
table other tables inherit from, making contact a base class seemed
like an obvious choice. After reading about roles though I'm not so
sure.
tx,
Dmitri