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

Re: deprecating Switch.pm

Thread Previous | Thread Next
From:
Michael G Schwern
Date:
February 25, 2009 15:44
Subject:
Re: deprecating Switch.pm
Message ID:
49A5D7DB.6040105@pobox.com
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.
        http://somethingpositive.net/sp07122005.shtml

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About