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

Re: ban empty sorts for 5.36 to free the colon?

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
January 19, 2022 20:52
Subject:
Re: ban empty sorts for 5.36 to free the colon?
Message ID:
Yeh6AjKHp8G+B5j5@iabyn.com
On Mon, Jan 17, 2022 at 11:34:40AM +0000, Dave Mitchell wrote:
> I propose that a sort with no physical arguments should be made
> a compile-time error for 5.36:
> 
>     @a = sort; # currently equivalent to @a = (); would become compile error
> 
>     @empty = (); @a = sort @empty # unaffected

Now done as v5.35.7-56-g78cc98885f
(and I even remembered to add a perldelta entry!)

-- 
Never work with children, animals, or actors.

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