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 14:07
Subject:
Re: disabling smartmatch and when()?
Message ID:
fb36b200-fa98-4dd9-a513-a2623cf31b15@beta.fastmail.com
On Tue, Jun 21, 2022, at 04:45, Paul "LeoNerd" Evans wrote:
> I think there's two things we need to do:
> 
> 1) Make ~~ and given/when much louder about their "you shouldn't use
>     this for new code" status;

Agreed.  Let's do that immediately?

> 2) Create a better replacement

I'm all for having a better replacement, but I continue to strongly oppose the idea that we *need* one to remove the old thing.

I write a lot of Perl, and have since before smartmatch was introduced.  I never used smartmatch for much.  I have banned it from my projects.  I have seen it largely unused.  Nothing it does can't be done some other way already, although sometime more verbosely.  We don't need a replacement, because *we have gotten along fine without using it for 20 years.*

A replacement would be nice, if it's good, but it doesn't need to exist before we take the old thing out.

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