[Bioperl-l] AnnotationCollectionI and SeqFeatureI changes

Hilmar Lapp hlapp at gmx.net
Sat Nov 27 02:03:06 EST 2004

On Tuesday, November 23, 2004, at 07:07  PM, Chris Mungall wrote:

> AnnotatableI->annotation returns AnnotationCollectionI
> 			 (*not* an AnnotationI)
> AnnotationCollectionI->get_Annotations returns list-of AnnotationI
> why can't accessor methods be named after the class of objects they
> return, rather than a different class? It makes things a lot easier for
> the easily confused like myself.

True, and should certainly be refactored at some point. Historically, 
$seq->annotation preceded $seq->isa("Bio::AnnotatableI") by several 
years, so when I added the interface definition I just took the name as 
it was.

Hilmar Lapp                            email: lapp at gnf.org
GNF, San Diego, Ca. 92121              phone: +1-858-812-1757

More information about the Bioperl-l mailing list