[Bioperl-l] attribute setting and return value

Lincoln Stein lstein@cshl.org
Tue, 1 Oct 2002 07:11:41 -0400


Personally, I like setting attributes to undef, as long as I do so explicitly.

Lincoln

On Monday 30 September 2002 06:20 am, Tim Bunce wrote:
> On Sun, Sep 29, 2002 at 09:11:00AM -0400, Aaron J Mackey wrote:
> > I think Tim typo'ed and meant "can't set an attribute to undef"; his
> > version allows it, while most of our others don't.
>
> Yeap. [Was the tail end of a long Sunday digging holes in the garden...]
>
> Tim.
>
> > -Aaron
> >
> > On Sun, 29 Sep 2002, Ewan Birney wrote:
> > > On Sun, 29 Sep 2002, Tim Bunce wrote:
> > > > Another problem with both styles shown is that you can set an
> > > > attribute to undef. Here's an alternative to the first style (it's
> > > > also faster):
> > >
> > > Quite often you want to be able to set an attribute to undef to
> > > indicate absence.
>
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l@bioperl.org
> http://bioperl.org/mailman/listinfo/bioperl-l

-- 
Lincoln Stein
lstein@cshl.org