Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130364 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 lists.php.net (Postfix) with ESMTPS id 8E16B1A00BC for ; Mon, 16 Mar 2026 15:48:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1773676128; bh=OLT/ULlO8RsUpk9Og4fpui/jJ2Ye7Yij3p2a1lBe2m4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZNn1RWv0Z+ACAij4vuMsMDdEMdNqOEplTHVHLbv3gXL84ljuFrrHoJ+2KzbF5vJAy Al4oakW1WQI2jFcr2j5A9ISpRdGyxwcFdyn+X2eLGsfDYZ6hfkEF8IilUcUfLaFTXs WBjPw0MMxkD7Nwncr/yHUnugqJn5+oXG5o5NbmLyzEY++iuJwjMB0ayXfIIKCJ3cZ0 NQ0nqdmNuF4X3L6mCRuELgH9XontXgLKPPk78ydLUJSc5yHb3RY5/v6AyX1dYPKVuT N4SSyXEO4Cp/IJg4o2vLMDdAHxqqwqck6GiihPr54rmbKQycZu9/n+jVv+I+i7o2S9 iO9Db+bXkmb+A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2F3AB180080 for ; Mon, 16 Mar 2026 15:48:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) 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,SPF_HELO_NONE, T_SPF_TEMPERROR autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Mon, 16 Mar 2026 15:48:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1773676116; bh=jbPFHUWV2to5E02MQq8A8YFe1VQCgkn0IaGU61E80Sc=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=fa1mQFbGTMzirMBoLFXof5Sg+dt4yU0wplgBUL8YC6LyAwUFAcAL5I2bRhU+Qa6C2 kYXQJUt1xH7SNisXdktUe3g5nx7FVrqku37aPhyCbZQ9Nrw0J4Bwhhj+bsE3H/c6VT IQHOLk5wd4+aqHN+bb4cRDk5HM5ESIjvfoJuNgk+MJGpOgtDctyqHLcfM5nJXvs9sg U8+rsBLG1RLZCSVVw+qu2bJE9b640daTDksnmOi+BSGuh9tgu84eqWq6DLLjF8yrwq BQIoOv00pa++rgscx0pKcnMSvvFYkp+kFWd/J0tGa4bbe3Zho7H1047vd542Cyk2TO Afy348/KBNenA== Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Mon, 16 Mar 2026 16:48:36 +0100 To: Larry Garfield Cc: php internals Subject: Re: [PHP-DEV] [RFC] enum SortDirection In-Reply-To: <98259e0e-22e6-48ca-b520-b91ae8072e11@app.fastmail.com> References: <5bec7fdd-e2d0-47ab-92d0-ead8eade21e6@bastelstu.be> <0fdf66b9-2027-444b-bee5-01bed296e3c9@app.fastmail.com> <58700a4c-7d1b-4e4b-b6f9-adc5843b0206@bastelstu.be> <98259e0e-22e6-48ca-b520-b91ae8072e11@app.fastmail.com> Message-ID: <4562f90e687f719a18cacb43cae0db33@bastelstu.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi Am 2026-03-13 19:11, schrieb Larry Garfield: > Otherwise, there's no real advantage to putting it in core rather than > FIG. The reason to put it in core is so it can be used in core. So > let's use it in core, even if not the full scope of eventual usage. I believe the RFC is sufficiently clear in how the enum can be useful for the PHP stdlib, listing some examples as future scope. And even if there would not (yet) be anything in the stdlib that could make use of it, I believe that asking users to install third party libraries with vendor-namespaces for a *data type* that is so broadly useful that it will likely be (transitively) required by every major framework is providing a good developer experience. Best regards Tim Düsterhus