[Bioperl-l] Re: Bio::PrimarySeqI
Ewan Birney
birney@ebi.ac.uk
Tue, 20 Feb 2001 08:14:23 +0000 (GMT)
On Mon, 19 Feb 2001, Hilmar Lapp wrote:
> <warning: the following is very technical>
>
> I started some cleanup work and cruft busting, beginning with seq
> classes.
>
> Some points about Bio::PrimarySeqI (and possibly others):
> - Do we still need can_call_new()? First, we can create an object
> of the same type by ref($self)->new() instead of $self->new().
> Second, every object can now accept $self->new(). The second may
> not necessarily be true for implementing classes that do not
> inherit from RootI, but the first is always true. (Isn't it?)
> - I thought we keep interfaces free of mutability-requirements.
> PrimarySeqI->desc() mentiones setting, too. I haven't checked
> others. Do we want to implement mutability-free as a general
> guideline for interfaces?
We need can-call-new. Some people (who are fronting databases) have
very thin wrappers over database handles implementing PrimarySeq, and we
shouldn't (in my view) burden them with having to catch ->new calls in a
fancy way to handle trunc/revcom etc...
>
> More to follow possibly.
>
> Hilmar
> --
> -----------------------------------------------------------------
> Hilmar Lapp email: hlapp@gmx.net
> GNF, San Diego, Ca. 92122 phone: +1 858 812 1757
> -----------------------------------------------------------------
>
-----------------------------------------------------------------
Ewan Birney. Mobile: +44 (0)7970 151230, Work: +44 1223 494420
<birney@ebi.ac.uk>.
-----------------------------------------------------------------