Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125814 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 7F4C11A00BD for ; Sun, 20 Oct 2024 21:23:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1729459557; bh=sH2Lg5XLUTgQUIj2aOpXM7/C91P1wZJKh+92749GN0Q=; h=References:In-Reply-To:From:Date:Subject:To:From; b=PuEWrKCAVCHVrJXwy6PhN49AlhiQNF1nQM0oRxXqVNvliVLWz/8h7Th5rSbh95koF 2+EdoSaqTBKJJkedlGy6Q3dHDO20fBriYJHAQAYshAPneWp5u3XtPlwULf8d4ZjylD 7dEL3vLeow6lQyNwwelMHgCaawxX9Cs9bpKxsI1/WR9TisLvbYa0DaGmeI85lAKM3v J6l5mPNm7Lm6lp4RqXsN7AgXvkkr+l0EsDoal4yEAd3RIiiomeWHB+eqPV8msDrTPr JZ3OE7558Bui8V6RV+qXNWowr2ldnmCp1c+J3zMNnJpChi3lnRiGI/bmI07DMpVHUS fERZaBd5+eVDw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 02C8C180037 for ; Sun, 20 Oct 2024 21:25:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 20 Oct 2024 21:25:56 +0000 (UTC) Received: by mail-qv1-f44.google.com with SMTP id 6a1803df08f44-6cbceb48613so25786116d6.2 for ; Sun, 20 Oct 2024 14:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729459412; x=1730064212; darn=lists.php.net; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=sH2Lg5XLUTgQUIj2aOpXM7/C91P1wZJKh+92749GN0Q=; b=lx+QH06T91vJ7Oecqjj+mKkYoch6voBi7eW4099hDQK5rX2wo2+ydCU4S+gXAWTcNp s1L7tPZuwBudU0DmfvnkuVT18PAZZ0GMGYcbXFsMf3pGuGSdC2BsyS5d6mc2SyZcV5hK hH6zCu3YFgGLpleHQ7tHuAgXiY+vea4+138Pni9GSJaleXHcgsikfYufdqJ6xUAVGzaJ bNobtQgliA0QTxWhMrJsKvrF6yy9XpuBZtf3+oNiqUeGyEQmJbx4O5t88sr3UzZnurPb qH9Q5eGZ7Dh+QX8HNL9ft2MFvqJj+DMlam/wydbJ+3YXxOCM6vdaK15P8ri2XJj45QC+ ft2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729459412; x=1730064212; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sH2Lg5XLUTgQUIj2aOpXM7/C91P1wZJKh+92749GN0Q=; b=msMw9+aYfSexWCvbgq8KW/QHEp+14uaqz+2tMlLn/HK+Fc8BeQcGIGAmhF8T8bNuW5 pys2TJPof6u4EmCnbnRDhBGkxRKOAM7jgul/ekwXhWSDksjCFC/XmaoBLtLazJ3BKtAP BrpON5IxfhdLjU/vjjqG59Temr3Y7fuP68YSQ9or6+GsWx8w2aK1VM/zfO9Ee/8igeJM lsfK/3VMASqa0Ag/IYyFrpFD/i2XGVql5S5ldigaqVN1Z15gL0R0iURDMWYGwTTwDG01 Uuvqp41s4W0RcH1MG1Mff+GMYId9EP5XdnpmzVtG58VHJ0oUizmLQkZAWPY7zaWWCdal 1z7A== X-Gm-Message-State: AOJu0Yw88+PwcJyQUtLPnWNaxNGnD/ST8gz4JfFeRloxhMndYgnjYNZW AkDRZ7rQUmLs3zmO7dxvFcCuUWAqXXPJH06Zf1/7/ErdFcdZnGt6HDOTP3bLSg13BIPmEekGm7s Tg3iZOWXnXsjfVO4/4G2A8eslk76Xr3ZE X-Google-Smtp-Source: AGHT+IFyoAq9IIDBGVt1sgY+cgzK448wvSozd/nGD+ghxqUDKiw0J7SdTJeg1umRcs3gQ9b+B8pO6W5+s1CnjNMSWZc= X-Received: by 2002:a05:6214:3b83:b0:6cc:42d:bbb with SMTP id 6a1803df08f44-6cde1695f11mr108437806d6.53.1729459412323; Sun, 20 Oct 2024 14:23:32 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <20340e0e-ddd0-44cd-b555-1402857eb20f@app.fastmail.com> In-Reply-To: Date: Sun, 20 Oct 2024 23:23:21 +0200 Message-ID: Subject: Re: [PHP-DEV] [RFC] Change behaviour of array sort functions to return a copy of the sorted array To: php internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: tovilo.ilija@gmail.com (Ilija Tovilo) Hi Bilge On Sun, Oct 20, 2024 at 10:30=E2=80=AFPM Bilge wro= te: > > I fail to see the logic of present tense =3D mutate, past tense =3D 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