[Bioperl-l] {flush,remove}_<Object>

Ewan Birney birney@ebi.ac.uk
Sun, 22 Sep 2002 17:15:00 +0100 (BST)


On Sat, 21 Sep 2002, Hilmar Lapp wrote:

> The remove/flush methods for array attributes setting those to empty 
> arrays I think all return TRUE (the value 1). (Why are there 
> remove_XXX and flush_XXX? which is preferred? Shall we fix this?)
> 
> ChrisZ actually started implementing that in a way that I find 
> potentially quite useful: remove_XXXX resets the array, but returns 
> the previous content. Allegedly, Lincoln uses this style too ...
> 
> Should we adopt this as the new convention, and fix existing methods 
> to comply? I'd vote yes.

Sounds good. Bonus points that in most cases the list return evaluted in a
scalar context will return true (though not of course in all
cases). Should we start building up a list of "conventions changed in
1.2?" in cvs?



> 
> 	-hilmar
> 
> --
> -------------------------------------------------------------
> Hilmar Lapp                            email: lapp at gnf.org
> GNF, San Diego, Ca. 92121              phone: +1-858-812-1757
> -------------------------------------------------------------
> 
> _______________________________________________
> 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>. 
-----------------------------------------------------------------