If there's a better place to ask this, please point me in the right
direction. I've been a lurker and have searched the archive and docs
but haven't found all that much regarding naming conventions for moose
roles.

For this example, say i want to provide functionality to do Drawing.

I've seen roles named along the lines of Drawable, DoesDraw,
DoesDrawing, but no reference as to any set standard.

>From an english standpoint, none of those sound all that great when
combined with the keyword 'with', either (with 'Drawable' or with
'DoesDrawing')

I've been working with the present continuous (progressive? - i'm not
a verb tense guru) form of a verb when writing a role with the
implementation being something that is capable of that verb, e.g.

package Drawing;
use Moose::Role
-----
package Custom::Drawable;
with 'Drawing';
----
package main;
my $drawable = new Custom::Drawable;

but am appealing for advice on any established conventions or
suggestions as to how to proceed. My approach breaks down with the
Moose::Manual example of a Car object implementing/consuming a
Breakable role which is part of what spurred this email because i'm
sure someone has put a lot more thought into it :-)

--
Jarrod

Reply via email to