Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123406 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 96AC21A009C for ; Wed, 22 May 2024 20:46:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1716410862; bh=qhXDPS4tAVXgdpEitewjM9PsNk9WCmskqD/36Acw1K8=; h=In-Reply-To:References:Date:From:To:Subject:From; b=F+jDgcU+g+mBbK1tcFb0/AtwhgChagXFanjhvg9X4WNHziH1DBVNTzdG2ZMG60nhC 56nJYpV3Da+ZA3by+EfZXVZC+3Ohw4ISaj8QnaKprOXO/xAA79guR5yarfKrV6jhuZ hdNk6dEy4jL7Gl7WkY0k7ZnbRJ69N/IqUY/wH8wZNOc/jiABxhOwa/fg36kdBzmWRm lYyk8XUSW2tzXewpZEwRuRj4YuWsL0+PRd3jydPCX9HMG0TAt1z9rqKSJpfRZL14ZM a+sbH8vWQgX27UesdZYUrINw6OedY3TaYZkAvB1WEBYZQ1xJTqGuMQovekjFnUKDk5 G59owtLt2YhaA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AF348180004 for ; Wed, 22 May 2024 20:47:41 +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_MISSING,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from wfhigh3-smtp.messagingengine.com (wfhigh3-smtp.messagingengine.com [64.147.123.154]) (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 ; Wed, 22 May 2024 20:47:41 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.west.internal (Postfix) with ESMTP id 6EEDD1800094 for ; Wed, 22 May 2024 16:46:43 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Wed, 22 May 2024 16:46:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-type:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1716410803; x= 1716497203; bh=ZcxUmgSk+hMsq8ljN2ei4su/pdUobThHWv9GbIVp3Wk=; b=b 9y+jSQ6HbUqwmm/wS7eNkieCFgHACb8c3v6Acg2LeoS3bxQ7EbsHGScjYVomrozb VWwF33kIoinwi+BnUvwzuyEo6pOadz5XxHlJZ/ZjThKVdL6PPwbPHmxsf7/8wO8o 8NetLUiSFJmRPY/MQhAX7viRDCM9oZzIzD+hwX4u8bETia94GAO78tu6SFyiEbnG EEIXxfBMEQjYtuSsrMx35Wo5HOYBIKnnqxU9tEaX8a7l+/h469p0LzJCfr2E1mcE mWPvHv2d19SW0uqWSahin5jbRE0abYxXjHdeMu0qXMvpel3XESydUHCzdr3Ua9tD xRQ5FEb3KiCnPOhZHvMEg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1716410803; x=1716497203; bh=ZcxUmgSk+hMsq8ljN2ei4su/pdUo bThHWv9GbIVp3Wk=; b=SquM4Uh7fAgzRy3eNZKxCmZyrMzb5PxMrVeYiI/dyLuW U5Tq8Qrd3JotdujJuYDwUZo4B4is5GbIGTP3oz9g1fk6JaMZBlUWv1IRKe12avFa JkkGWgIo8NgB0gkD846rr/96OohYYnAjrkRBHwmMLN1Bopha/sva+W4GjnvHg5Z4 Whi0+ZTplUgWMJOG3DQzr5y7I/CCN5C37INDknwTds9bRyKtCA7Xm7t4R+OYGm7D CIEIroCMWk44ZxvHGv5LqSwWtovrqSF06MVEgZj2y7kxxdOQKpQrgDnODINQ+51w FeMS15a4IiRRM1xwchCu6dSn9Z/0BFToMNSZyv6UJg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeigedgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeeglefgkeduiedvvdetffeujefftdfhjeeiveehgfff keduveektddvledvvdfffeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id B71171700093; Wed, 22 May 2024 16:46:42 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-480-g515a2f54a-fm-20240515.001-g515a2f54 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Message-ID: In-Reply-To: <3053F28C-22BB-40B2-9675-05742E5EB8BB@koalephant.com> References: <9c763cee-6524-4423-b95e-6bfff4763d2e@app.fastmail.com> <3053F28C-22BB-40B2-9675-05742E5EB8BB@koalephant.com> Date: Wed, 22 May 2024 20:46:22 +0000 To: "php internals" Subject: Re: [PHP-DEV] [Discussion] Implicitly backed enums Content-Type: text/plain From: larry@garfieldtech.com ("Larry Garfield") On Wed, May 22, 2024, at 2:29 AM, Stephen Reay wrote: >> On 22 May 2024, at 07:58, Larry Garfield wrote: >> >> given that the casing for an enum should be CamelCase (per PER-CS) > > Hi Larry; > > I find myself yet again having to ask that php policies/discussions not > revolve around the idea that PHP-FIG is a required/expected part of PHP > usage. > > Until a PHP RFC specifying "proper" casing for userland enums passes, > can we leave the claims about what they "should be" out of discussions > about language/stdlib functionality? 1. The status quo in the ecosystem is relevant to language development. FIG is a part of that ecosystem. "Everyone in Laravel does X" or "this would break Symfony which does Y" are also a relevant observation to make, though in neither case is it a binding dictat, of course. By a similar token, the language doesn't require class-per-file, but the de facto standard for virtually every project that isn't WordPress is to use class-per-file for autoloading. It would be highly stupid of us to ignore that fact when discussing autoloader improvements. 2. The Enum RFC used PascalCase. The PHP maual uses PascalCase. We're already recommending PascalCase as the standard for enum cases. Those who aren't following that recommendation are, from what I've seen, using ALL_CAPS. Meaning using lower_case is NOT typical, and thus the issue I mentioned (that automatically using the case name as the backing string name may not be all that useful) is present either way. --Larry Garfield