[Bioperl-l] deprecated(), was Re: use of no_* to mean 'number_of', negative booleans

Chris Fields cjfields at illinois.edu
Tue Jun 9 16:45:37 EDT 2009


On Jun 9, 2009, at 3:19 PM, Chris Fields wrote:

> On Jun 9, 2009, at 2:12 PM, Robert Buels wrote:
>
>> Why not just add deprecation warnings now?  Or you could add  
>> deprecation warnings now that only print if  
>> $Bio::Root::Version::VERSION >= something.  Best to do it while one  
>> is thinking about it, I always say.  Cause I always forget to do it  
>> later.  ;-)
>>
>> Rob
>
> Actually, that's one thing I want to implement within Root, namely  
> the ability to do this:
>
> $self->deprecated(-message     => 'method Foo is deprecated',
>                  -start_ver   => $version1,
>                  -throw_ver   => $version2
> );
>
> So it's essentially a noop and invisible up to start_ver (upon where  
> it warns), then throws after, well, throw_ver.  I could probably  
> finagle that in w/o destroying things...
>
> chris

Just to note, this is mainly to allow us devs the opportunity to add  
these to main trunk w/o having to worry about merges over to the 1.6  
branch (where the version is different).  We don't want the dep  
warnings showing up there right away, but maybe in a point release or  
minor version.

chris



More information about the Bioperl-l mailing list