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

Re: deprecating Switch.pm

Thread Previous | Thread Next
From:
Bram
Date:
February 25, 2009 13:29
Subject:
Re: deprecating Switch.pm
Message ID:
20090225223007.u31sqcl9cgc0k8kw@horde.wizbit.be
> 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


Kind regards,

Bram




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