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

Re: use sort;

Thread Previous
From:
Dan Book
Date:
June 9, 2021 07:15
Subject:
Re: use sort;
Message ID:
CABMkAVXOxw9qpVYfDXov-DR8gDbJPk3+MMUE0kkKaR-N-NBM6g@mail.gmail.com
On Wed, Jun 9, 2021 at 3:03 AM Nicholas Clark <nick@ccl4.org> wrote:

> More generally, the historical purpose of C<use sort> was one way of
> upgrading one type of behaviour. We wondered why we have a special case for
> sort.  Why can't one simply import a new sort function, the same way that
> you could import some other function to do $other?
>

Having a rough idea of how sort is parsed, I'm not sure introducing more
keywords with that behavior is wise...

(not that it sounds like you are suggesting anything specific here)

-Dan

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About