[Bioperl-l] Moose and Roles

Mark A. Jensen maj at fortinbras.us
Wed May 27 00:17:07 UTC 2009


----- Original Message ----- 
From: "Chris Fields" <cjfields at illinois.edu>
To: "Mark A. Jensen" <maj at fortinbras.us>
Cc: "Chris Mungall" <cjm at berkeleybop.org>; "BioPerl List" 
<bioperl-l at lists.open-bio.org>
Sent: Tuesday, May 26, 2009 7:40 PM
Subject: Re: [Bioperl-l] Moose and Roles


...
>>> For the names I prefer either (a) the convention of using  adjectives  or 
>>> adjectival phrases to denote roles or (b) spelling  it out rather  than 
>>> using hungarian notation (e.g. DescribableRole  rather than  Describable)
>>>
>> +1; would you accept predicates such as "DoesDescriptiveStats"?
>
> That's an 'Ovidism'; not necessarily a bad thing, but it's a mouthful  for a 
> simple role.  Bio::Role::Describes, perhaps?
>
> package Bio::Foo;
> use Bio::Root::Moose; # sets Bio::Root::Root as base class
> with 'Bio::Role::Describes';
>
> This isn't too far from the perl 6 syntax for roles:
>
> class Bio::Foo does Bio::Role::Describe {...}
>
> chrus
>
>

[Can you tell what I've been reading lately?]
I would say any convention that leads naturally to
perl6 is a good idea-- maybe even to the point
of thinking 'how would this go in perl6' and then
naming the Moose-y object accordingly- 




More information about the Bioperl-l mailing list