Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123003 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 A389F1A009C for ; Sat, 6 Apr 2024 16:01:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1712419348; bh=dCj5iOyikXQgEFbMF7cX47QX+CWXN9maeUhT0M7LUqQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=NIXUQjeO+9h4U6nbx1L0MBSAZnIX7xB4yb0/6AC9FvKfwe5uu7sVKDBBqGak5ccoR 4zMchuUJmq3qHZe3bapWlUwcBgWiYGgOtO/m9M9EmCiDYpIwKn3t2yipS/GRuHe2zn SS7nHDcFUDUBKCFux8Ae0WVwiT+SYdGPmqnQnlyOaoKXkcZISqxjzBbV7t0jKwurM4 0upJkxMzayWLKLYJa0JgOvSGZkh5sMcVWq0sO2phaCDuuJBnOmpVcVg1byuvvU36Fa fht0l8jUzIEQAyZ9fXmjQpx7WfFBtwGdd1oaxZKLMjLAl0CdPyMnE3/gRNJpR3H0LN uiVuTTwET9R/g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 47D8D180A80 for ; Sat, 6 Apr 2024 16:02:28 +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=-2.1 required=5.0 tests=BAYES_00,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 16:02:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1712419316; bh=wJWtyu9HvwEPR/FxS92Ot0T2GtzNmHj0hUouYdYlPno=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=MPXf1vJHOr5L2yNTIMdV+8Ow7H9yKoM6qCl/q1kpk3ow9p2gffmvMdg6TCLrtRzEy Htl6d2dTCy5FMIm1QPOYx7OVPXBYCatN1fr3KtDrHRcaXV9VcsSguaf5wkGIAOnTJ/ /FFimpTErSPqj7t6GLH7C8/L8L7wYl/LN62qiGgEzFQXc8YQlSq/1Hzd+ODrPqr8P9 bks2WKcugijYJ2kktlb4ERBAlT7uj8EGX7UzLnp6RUq1IgnMrZrpp7+sNIifnno0Ns h8VmY0N88dgBvN/nvkEg+wqitxWYpOLWojmYghQBJsWzDuVZRYdNj9U9UnX1VHyn+S +n68RvRuqHVDQ== Message-ID: <4c56763c-2d65-4f64-b1ef-87e6ab88a473@bastelstu.be> Date: Sat, 6 Apr 2024 18:01:55 +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> <8c650dbe-4ba6-4f27-beb2-0f63a752b024@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:54, Saki Takamachi wrote: > 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. This is correct, because the current class naming policy specifies that acronyms must be written in UPPERCASE. Thus the examples are consistent with the current policy. > 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. I've added namespaced examples: https://wiki.php.net/rfc/class-naming-acronyms?do=diff&rev2%5B0%5D=1712350524&rev2%5B1%5D=1712419286&difftype=sidebyside > In fact, due to some ambiguity in the namespace RFC, I couldn't decide whether BCMath's namespace should be "BcMath" or "BCMath”. With the current policy it should be "BCMath", if my RFC passes it should be "BcMath". I think Bcmath would be fine as well, if you consider the extension name to be a single word. Best regards Tim Düsterhus