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

Re: Deprecation of smartmatch

Thread Previous | Thread Next
From:
"Ruud H.G. van Tol" via perl5-porters
Date:
December 3, 2022 14:24
Subject:
Re: Deprecation of smartmatch
Message ID:
9fdb511a-cafa-3cb6-e130-824b81e0936e@isolution.nl

On 2022-12-02 21:11, Darren Duncan wrote:

> [...]
> So in summary, I agree with the match-case and eqv/=== additions to 
> core, but I feel the "in" should be left for the likes of List::Util.  
> The first 2 have a high win for core syntax AND they are relatively 
> uncomplicated, while the last 1 is a lot more complicated in its 
> variants and best left in modules, albeit possibly core-bundled modules.

I'd love to have the 'in' into Perl, with a default of 'eq', much like 
how 'sort' defaults to 'cmp'.

And I still mourn for 'dor' to not be there yet.

-- Ruud

P.S. I always rejected usage of: lexical_topic; switch; indirect; 
multidimensional; bareword_filehandles; looks_like_number; $@ checks.

I strongly support weeding out value-based semantics, like is done with 
bitwise. And I'm longing for more mature signatures, so I no longer have 
to code like \my($x,$y)=\(@_);
:)

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