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