[Bioperl-l] {flush,remove}_<Object>
Hilmar Lapp
hlapp@gnf.org
Sun, 22 Sep 2002 13:58:31 -0700
On Sunday, September 22, 2002, at 09:15 AM, Ewan Birney wrote:
> 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?
Sure - good thing. I guess being the release shepherd you just
volunteered to do that :-))
-hilmar
--
-------------------------------------------------------------
Hilmar Lapp email: lapp at gnf.org
GNF, San Diego, Ca. 92121 phone: +1-858-812-1757
-------------------------------------------------------------