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

Re: disabling smartmatch and when()?

Thread Previous | Thread Next
From:
"G.W. Haywood" via perl5-porters
Date:
June 24, 2022 14:26
Subject:
Re: disabling smartmatch and when()?
Message ID:
365c1dfc-8275-ed71-77dd-48f316b025a7@jubileegroup.co.uk
Hi there,

On Fri, 24 Jun 2022, Ricardo Signes wrote:
> 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.

My sentiments exactly.

I briefly flirted with 'given'.  In 2017 I abandoned it, and swore that it would be forever.

Even if there's a new one, I doubt I'd take the risk.

-- 

73,
Ged.

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