Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123001 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 84AAF1A009C for ; Sat, 6 Apr 2024 15:38:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1712417921; bh=4TeqGxUp+2Din47x3LMm4uhlQ/m+tXNCcJ29km2l7+A=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=C0Em6VJ1GuQvFbBuhBA8YEXCKUSMXaMbiRFy4WvOLiWM5MkPu+JgRkgTeml5NiJVN 67JuB7THNdh45kInO1FboQbcBiMeDZhw62AA1cd0t+adcz4rahKycfJOF/bDjMp2oq t06jf2xnRziCCCdr25COLWgrzQXC9l2LQRmoCDnH0Sb4ggQ/3uPsM6K4IQQ7CPgkVa fXsORz4xDt7Cw8FmDaBdpBIrCDasZe5ozUkW8dnBq5jIkgdXQVJAjmL3N/XODGaffK 7dQ0RSMPfV1d+Dt7sfVueCppbTpQrdLpzTcsx9H64SFKBB808bK6WOF2tfsvcNq7ux Md1xaI/M1EkdQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BC1EE1807AB for ; Sat, 6 Apr 2024 15:38:40 +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 chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 6 Apr 2024 15:38:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1712417888; bh=/9R4iqh+D/pn4C6/gTkfKZGljOmBYxFFp7wMOs1c9Kc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=adC2UmQqD5RQnK1T0wkr0dncT3myv5LeOs2GHFsXHn3apaTb4HaB9OAi9wQUI01CL rzFwg/ABqLexrR0QMsPsUviLjA+s4d6y52bgSFJ8nxlr5G67IY6zGO0eDH8eenlHvL /Lc7F1JsG+mqf1DYEOEbZmEAfa0WBoFgVnuZh66+I47U+EWV4u1b41d9AcNcVpgg/x 72oPpZDQsctuj2WflKtMYz9xxp0iCT/K1sYmUv8VBrrveD0hY6G8WhCjGP5Q9Mdd6S dp5l8f62Nr9Fs4Ah2mrJoFLfBpwRJrbr7ocM6bqYKDL4Gtn0shNm+6vRD1cu51PaQl jqnmot/xNd7Ug== Message-ID: <8c650dbe-4ba6-4f27-beb2-0f63a752b024@bastelstu.be> Date: Sat, 6 Apr 2024 17:38:06 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] Casing of acronyms in class and method names To: Saki Takamachi Cc: PHP internals References: <792b2282-b7a3-40dd-899c-daab55353316@bastelstu.be> Content-Language: en-US In-Reply-To: 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 On 4/6/24 17:16, Saki Takamachi wrote: > 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. Namespaces are defined as CamelCase (i.e. upper camel case / PascalCase) in the “Namespaces in bundled PHP Extensions” RFC: https://wiki.php.net/rfc/namespaces_in_bundled_extensions#proposal 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. ------------------------------ 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: > 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. That has not yet happened, though. Best regards Tim Düsterhus