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

Re: disabling smartmatch and when()?

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
June 24, 2022 16:10
Subject:
Re: disabling smartmatch and when()?
Message ID:
27e55840-7e2a-4752-87f1-a7e14f5a738c@www.fastmail.com
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. 🙂

-- 
rjbs
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