Re: [RFC] Change behaviour of array sort functions to return a copy of the sorted array

From: Date: Sun, 20 Oct 2024 21:23:21 +0000
Subject: Re: [RFC] Change behaviour of array sort functions to return a copy of the sorted array
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-125814@lists.php.net to get a copy of this message
Hi Bilge On Sun, Oct 20, 2024 at 10:30 PM Bilge <bilge@scriptfusion.com> wrote: > > I fail to see the logic of present tense = mutate, past tense = copy. At least there is a > pattern to it, but I would have to look it up several times before it sunk in since it is not > intuitive at all. It's sorted, the adjective. As in, "give me a _sorted_ array", compared to "_sort_ this array". It's a common convention and I always found it intuitive. Ilija

« previous php.internals (#125814) next »