develooper Front page | perl.perl5.porters | Postings from February 2009

Re: deprecating

Thread Previous | Thread Next
Michael G Schwern
February 25, 2009 15:44
Re: deprecating
Message ID:
Bram wrote:
>> If this is going to be a common enough use case for deprecated,
>> conditional
>> deprecation, why not build it in?
>>     use deprecated $] >= 5.11;
>> Or to leave open the possibility of other arguments...
>>     use deprecated if => $] >= 5.11;
> That's not really backwards compatbile. Unless of course deprecated is
> also added on CPAN and Switch has a dependency on it but that just seems
> silly to me

I presume you're referring to "use deprecated" in general and not specific
syntax which is what I was really talking about.

Ok, no problem, make it a dependency.  It's not like Switch doesn't already
have far more complicated dependencies.  Having a general way to say "this
module is deprecated under these conditions" seems useful.

Insulting our readers is part of our business model.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About