Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118015 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 18722 invoked from network); 20 Jun 2022 13:33:53 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Jun 2022 13:33:53 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9B2EB180506 for ; Mon, 20 Jun 2022 08:22:55 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 176.9.0.0/16 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 ; Mon, 20 Jun 2022 08:22:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1655738573; bh=E/N8T+rmSCEh13I1mDrBSZphF1G4zPpO/28s8uifm4I=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=PvfLBDiX6lb1mjwzHDW8lQWbxC/6tUIJWm00xWYtENFEQaLuQMxQCuygzviQLk+PD xhcBEuD2rkbJrrYZiUAyu0chOffsXtKdTG1EzfWgNtckKGc06DtVmacUK4J5Nb4Ytn aSSKJ32CcnWDKpkNYWj6LjySCSVWrtZIB5Ln8YRG+HYVvfxCjqID3eq136FookORhF WpiEjyyRhnYfkmjuhmul4OLcMplJI+ZD9w9/Q98EPqSrg9FVxlWz2+T1jrCJXZ/RAP UrLwCuZbYwDdNVJ0192bNBWiIAhx3HMaFRPdo2M3tRH64e4nqIeqIsJ+5Lh/NWgOEY GjkfDWe/0AFNA== Message-ID: <35b15014-b22c-7f7a-a061-ef5ccdb80a54@bastelstu.be> Date: Mon, 20 Jun 2022 17:22:52 +0200 MIME-Version: 1.0 Content-Language: en-US To: Lynn Cc: PHP internals References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Acronyms in class names (was: [RFC] [Under Discussion] Random Extension Improvement) From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=c3=bcsterhus?=) Hi On 6/20/22 16:36, Lynn wrote: > Not specifically directed at this discussion, but perhaps this needs a > revision. HTTPStatus is much harder to read for me than HttpStatus and it's > unclear where the boundary of an acronym starts or stops. If anyone ever > decides to make an RFC for this, you have my vote. These Acronyms are > treated as words and thus should follow the same naming convention. If they > shouldn't be treated as words, write their full name: > HypertextTransferProtocolStatus. > Yes, I agree here. I switched to ucfirst(strtolower()) acronyms a while ago and find those much more readable. It also avoids issues when there are multiple acronyms within a single identifier (think PCGRNG vs PcgRng). Best regards Tim Düsterhus