[Bioperl-l] Bio::RootI

Ewan Birney birney@ebi.ac.uk
Sun, 18 Nov 2001 14:04:56 +0000 (GMT)


On Sat, 17 Nov 2001, Lincoln Stein wrote:

> Hi Jason,
> 
> Thanks for fixing the problem I introduced with ref($self) eq 'HASH'
> in Bio::RootI.  It was a thoughtless one-off.
> 
> I'm puzzled as to why the root interface has any object data at all.
> I've always thought that interfaces should have methods only, and no
> object data.  I use array-based objects a lot for performance
> considerations, and inheriting from RootI is problematic because there
> are various places where RootI assumes that $self is a hashref.
> 
> Would it be inconvenient to propose that Bio::RootI be recast as a
> pure interface with object methods for getting and setting the cleanup
> and debug flags, and that a new Bio::Root module be written that
> implements the common hash-based methods?  Most modules would then
> inherit from Bio::Root.
> 

I like this proposal - I also like keeping interfaces data free, but don't
mind interfaces having "decoration" functions on them (eg, throw)



> Lincoln
> 
> -- 
> ========================================================================
> Lincoln D. Stein                           Cold Spring Harbor Laboratory
> lstein@cshl.org			                  Cold Spring Harbor, NY
> Positions available at my lab: see http://stein.cshl.org/#hire
> ========================================================================
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l@bioperl.org
> http://bioperl.org/mailman/listinfo/bioperl-l
> 

-----------------------------------------------------------------
Ewan Birney. Mobile: +44 (0)7970 151230, Work: +44 1223 494420
<birney@ebi.ac.uk>. 
-----------------------------------------------------------------