develooper Front page | perl.perl5.porters | Postings from June 2022

Re: disabling smartmatch and when()?

Thread Previous | Thread Next
Ricardo Signes
June 24, 2022 16:10
Re: disabling smartmatch and when()?
Message ID:
On Fri, Jun 24, 2022, at 11:59, Paul "LeoNerd" Evans wrote:
> One thing we do have is "deprecated", which I think current policy
> requires us to make a formal statement in pod/perldeprecation.pod and
> give a timeline for eventual removal. Do we want to commit to that?
> Alternatively, I could add a new "discouraged" category. Though I think
> I recall trying that sometime before and we eventually decided it
> should just be deprecated anyway.

Discouraged was created, more or less, for "we don't think this is a good idea but don't plan to get rid of it."  I don't think we should warn on those.  Put it in the linter.

But I think we really want to remove smartmatch, so it should be deprecated.  Since replacement and removal are disconnected, I think we can set a date if we like.  I'd say 5.42 probably, but am open to negotiations. 🙂

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