Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123002 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 B1FBC1A009C for ; Sat, 6 Apr 2024 15:54:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1712418915; bh=Ob0OhV9CCxUUDmNFBv6WjfIQeJcLrGHYI41jikCzC8g=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=HTldOLnrP5zrAbeQGrDLKOh4+9UVUGmzQErG63q+b2yvIcP5PttRsca6BW4psNseT e/8wA8sn3+tDFf2vTxXPcl++OD3aPiDFC/R/s9zkQxiUJTkn2YVc/SFFFmDOM/Uzmq vVRf8fnBaH+afWK0g2sU4ixtq3Pblw0vw0bHiygBuWm669cLiRa5tY0Z0EyuvubN9C CNhQbdpKJz2A5xefWHSV3dIm4tN3WhNKCgbfZWXKJz/OXv2hnjvhmsl+OZXSq8Dx56 2DnC/1V2rt4JLU7VAUBSntTu0tVHDrUDxeQFCAXX/cjWBWBsFNLpDMNWTO1aiAvz3I t42LO2lCs+ZKA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 452CD18007D for ; Sat, 6 Apr 2024 15:55:15 +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.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail.sakiot.com (mail.sakiot.com [160.16.227.216]) (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 ; Sat, 6 Apr 2024 15:55:14 +0000 (UTC) Received: from smtpclient.apple (unknown [117.55.37.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.sakiot.com (Postfix) with ESMTPSA id CB8E2401F4; Sun, 7 Apr 2024 00:54:41 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sakiot.com; s=default; t=1712418881; bh=Ob0OhV9CCxUUDmNFBv6WjfIQeJcLrGHYI41jikCzC8g=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=Js+dJG7zrMKhhEOIFadEuCZlyXFunj6LnIS67kHFRDRo4brvHaGIw0bBWqu0TGq/P DmiNdv1hyE0X6342AJNuChl0It9aX5sdwtaCZ/LzyPFRzLa6uEWAnOeOg0krbn5GYM oIt1lcqPnpc9lisE7S8ZOf/NbMWP5A5ABGiB9F4Q= Content-Type: text/plain; charset=utf-8 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6.1.1\)) Subject: Re: [PHP-DEV] [RFC] Casing of acronyms in class and method names In-Reply-To: <8c650dbe-4ba6-4f27-beb2-0f63a752b024@bastelstu.be> Date: Sun, 7 Apr 2024 00:54:29 +0900 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <792b2282-b7a3-40dd-899c-daab55353316@bastelstu.be> <8c650dbe-4ba6-4f27-beb2-0f63a752b024@bastelstu.be> To: =?utf-8?Q?Tim_D=C3=BCsterhus?= X-Mailer: Apple Mail (2.3731.700.6.1.1) From: saki@sakiot.com (Saki Takamachi) Hi Tim, >> Strictly speaking, namespace is neither a class nor a method, so = isn't it outside the scope of this RFC? In fact, RFC: Class Naming makes = no mention of namespace naming conventions at all. I asked this because = there was mention of namespaces in the `DOM`. >> If I'm not misunderstanding something, I think I should clarify that = RFCs also include namespaces. >=20 > Namespaces are defined as CamelCase (i.e. upper camel case / = PascalCase) in the =E2=80=9CNamespaces in bundled PHP Extensions=E2=80=9D = RFC: >=20 > https://wiki.php.net/rfc/namespaces_in_bundled_extensions#proposal >=20 > The phrasing in the RFC is intentionally worded to speak about = abbreviations and acronyms in a generic way (i.e. not specific to = classes or methods). It naturally follows that the same rules applies to = acronyms in namespaces, especially since they are effectively part of a = class name. >=20 > ------------------------------ >=20 > However I agree that it should be incorporated explicitly once the = existing policies in the policy repository have been cleaned up and = rewritten as a follow-up to the = https://wiki.php.net/rfc/policy-repository RFC: >=20 >> Once (and if) this RFC is accepted, a first new step would be to = rephrase the text so that it reads like a policy document, instead of an = RFC. The wording is currently exactly as in the used RFCs, without = modification. >=20 > That has not yet happened, though. However, in the example from "RFC: Namespaces in bundled PHP = extensions", the acronyms are not camelcased. e.g. `FFI\FFI`, `OpenSSL` In other words, the RFC can be interpreted as "excluding acronyms" = implicitly. Just to clarify: I agree with your RFC. However, I think it is best to = avoid vague statements where the meaning changes depending on = interpretation, if possible. In fact, due to some ambiguity in the namespace RFC, I couldn't decide = whether BCMath's namespace should be "BcMath" or "BCMath=E2=80=9D.=20 Regards. Saki=