Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123412 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 74DF81A009C for ; Thu, 23 May 2024 12:58:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1716469185; bh=61c6oWwnedOJRece1enRzEbdGdvMmk53ujP49QlJTPk=; h=In-Reply-To:References:Date:From:To:Subject:From; b=DFvewP6qughHTwhrkQuY1wNfZpsxxjeNIVUNqRi3XGiXuFfiOXWUIFqMEXhpiDBep uIXWUN4HtWG6UMsVXN3t5ukfwQKAAgypGi6taDjdt85dqJpE8IQl9ckBj/AdnaMb8x mxFHDPVIU9mJjkssTFB/9jW/0B20RkG5+p5dW2QqlhtP2wO31iDTiFImRanIfynBQc /QVyomGBR50OhYNQl7i3gGp6A36y/Y8wzc4d1gs66ZuFwhY62e5UD1tSH0k9t+WgJj z1o5nTtB9uShp9PQO9yUY6u7u1Aci+QbhVlf5GieJijj2KH4LtJ87VlcSoWmHd9/7M dXDUgcSDpXbeg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2193A18005D for ; Thu, 23 May 2024 12:59:45 +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.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, 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 wfhigh5-smtp.messagingengine.com (wfhigh5-smtp.messagingengine.com [64.147.123.156]) (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 ; Thu, 23 May 2024 12:59:44 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.west.internal (Postfix) with ESMTP id A3651180007F for ; Thu, 23 May 2024 08:58:45 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Thu, 23 May 2024 08:58:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding: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=1716469125; x=1716555525; bh=hD6heu4p4Xin2fiAVTsw0 +UZZGOCBG/cFFOchf+VYLE=; b=bt8XMRV6pY2Ki0XR5heE+/UQyXhtI3bIKSVYg ZZxBiC9q9fAH3Qz8peWBH8+21c84xqON67CLIKECTIUFBwSG25U84gGcErrf8c+K WmFmi0dtWNs5F0kvv07GKsDI7z/1IPvDdCSGXwF9jL28m/ZIH1hMxwPJKWxIHY3L Z2cdM+e4jQDY59HnrI00xDmGZ71gTC/UCnQPL5dbLPZ4K3TD4UGgQYBlWGTmwR9m xcNR7ThEk9JbAQP0Qm39YktUCc5L0hdLv4fgVSDy+naUwRAzBbi6eoJ4bPL97QGe DFSI8Wqd3UhWlbtPQfWif4GLJaO+Kvr18fPTp/DMuHa9RSk9A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=1716469125; x= 1716555525; bh=hD6heu4p4Xin2fiAVTsw0+UZZGOCBG/cFFOchf+VYLE=; b=I 98o1n/dYAyizft3GAJVV4r9qhLnLQZwaiog4MVRWI4vnUg4Y74QId61avW4qzK65 Gfa+rR5zIJ9MWzo7pumo1yhVaUKVizb5BffGeq/FUW4MWLen5+BAyVOJsonIQnq6 54BlhR/HMu2JA87GoEOyoHgTmCnavhlnKzRK7EIJrF3+fbz59gSzEZtq6pZRqqux /LPWi8HluaoPakmk8a12tdD8zTUGkTFNaimsU9t0J+sazmhNpu/ep/Xaz/hGJAmA uosP4WseSmVQUh8TI2xtFrRnvV4KvMXdj3vo+FO6ZpOAW4MKlgWbLtJXaVhib+vG o86mlrlmy8nasbkIRbvhw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeiiedgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpedfnfgr rhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtg homheqnecuggftrfgrthhtvghrnhepffffffejffdugfegvedviedttedvgfejffefffej leefjeetveehgefhhfdvgfelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id B4F191700093; Thu, 23 May 2024 08:58:44 -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: <4BF0CC62-09A0-4147-A9C1-F0914B31A4B4@koalephant.com> References: <4BF0CC62-09A0-4147-A9C1-F0914B31A4B4@koalephant.com> Date: Thu, 23 May 2024 07:58:24 -0500 To: "php internals" Subject: Re: [PHP-DEV] [Discussion] Implicitly backed enums Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Wed, May 22, 2024, at 7:30 PM, Stephen Reay wrote: > Sent from my iPhone > >> On 23 May 2024, at 03:58, Larry Garfield wro= te: >>=20 >> =EF=BB=BFOn Wed, May 22, 2024, at 2:29 AM, Stephen Reay wrote: >>>>> On 22 May 2024, at 07:58, Larry Garfield = wrote: >>>>=20 >>>> given that the casing for an enum should be CamelCase (per PER-CS) >>>=20 >>> Hi Larry; >>>=20 >>> 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. >>>=20 >>> Until a PHP RFC specifying "proper" casing for userland enums passes, >>> can we leave the claims about what they "should be" out of discussio= ns >>> about language/stdlib functionality? >>=20 >> 1. The status quo in the ecosystem is relevant to language developmen= t. FIG is a part of that ecosystem. "Everyone in Laravel does X" or "t= his 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 s= imilar token, the language doesn't require class-per-file, but the de fa= cto 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 igno= re that fact when discussing autoloader improvements. >>=20 >> 2. The Enum RFC used PascalCase. The PHP maual uses PascalCase. We'= re already recommending PascalCase as the standard for enum cases. >>=20 >> Those who aren't following that recommendation are, from what I've se= en, using ALL_CAPS. Meaning using lower_case is NOT typical, and thus t= he issue I mentioned (that automatically using the case name as the back= ing string name may not be all that useful) is present either way. >>=20 >> --Larry Garfield >>=20 > > Hi Larry, > > I didn't say the community or common uses should be ignored. I just=20 > asked you not to use the phrase "X should be Y because of entity>". > > It suggests authority where none exists. I think you're reading far more "intent" or "enforcement" into my parent= hetical than was intended or appropriate. --Larry Garfield