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:
Paul "LeoNerd" Evans
Date:
January 17, 2022 13:30
Subject:
Re: ban empty sorts for 5.36 to free the colon?
Message ID:
20220117133032.0ea99741@shy.leonerd.org.uk
On Mon, 17 Jan 2022 11:34:40 +0000
Dave Mitchell <davem@iabyn.com> 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
...
> The important thing is that I don't want to start a long discussion
> (yet) about HOW the new syntax could be used; I just want to get
> quick agreement that by banning empty sorts ASAP we free up the
> syntax space for use in a few releases' time.

Sounds good, +1 from me.

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

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