Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120960 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 45971 invoked from network); 30 Aug 2023 11:58:48 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Aug 2023 11:58:48 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AA3731804B4 for ; Wed, 30 Aug 2023 04:58:47 -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,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 30 Aug 2023 04:58:47 -0700 (PDT) Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-50098cc8967so8559086e87.1 for ; Wed, 30 Aug 2023 04:58:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693396725; x=1694001525; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uMyw+XnDyjJRbJPQAP9PNrvpG6L+vuScIdfjMkYqe80=; b=MQ+7JlsCPQbKi2adqkqk/RT5XZ2J9lmd2RB5PWX0tLNzB4LpWn6vHtIGpnHpfpYO8O a7kHIsyStFA4KstoOYjvjTQfIEpiiHCFmviRss8He0atQe0e1GQvFXJ8rNEifhzSxdfq WEIZ+e7+O1p8dJQbvsid8Ag5NlIrrr2j0bxh33oM62BmrSInhMTk+/ih8L3qwVtkGuJH xsq7GD4dihxncdgo7ToFf1mi36bngU8g4ioEnIwZYAJ5M86CSFwDP72/6aDwhWc9tscJ 3Ffvi+CCtYwUZmOrrNtt03RosOvU5tVpCv3qE53VhStR8U5SratWZqSCiyyEd4TQq24c d+Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693396725; x=1694001525; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uMyw+XnDyjJRbJPQAP9PNrvpG6L+vuScIdfjMkYqe80=; b=NMItmb8egAw2IioW+WDdUWT/EIzx1X7YZWJEtOktd8G9di5u6AXrtJa+6Xr5Ax/pm9 32a7EJ1nourBppFYjNWpaYT41TFC1LhokI4Erz6UkbEdPa/8wWZobR5HZfiSvOQtWzO9 tH/sDm0QDPBxRZAWrzJ0Akh4Hs4ZwPKOhQETwpbeXdSocs+A87ocY/PcI/iVTXVtBV+W cbUkc1NnCw9A6Nl1bHj8lCw8ZVMrYDzrO/XqUB3uhyFiB+f/nI6E8RnZonBUR9Inyrx0 Wujl4wDFcEqpL9lzEnLRe756E5Opv2Nj935G5PcXmmyV+TrpPL7fN0YO7OEyx0BBLyBg s4wA== X-Gm-Message-State: AOJu0YxxJc4Zd/zBVJ9f2htt9btVEEqoWqU2roTumStbqBHexyAkJSpm SfmRc1jBPc15ivpLVR6yqUVV2Vtl2MEfbeYPdW5yn/3B X-Google-Smtp-Source: AGHT+IEEYBCWsYx6DDt7ecsz6mS7Sw+eWAnjp9/47Hpp4rWJ66WoGwwuwC1NRHi0qHlxWDaYk1Gx//LV/MARLh6mmrU= X-Received: by 2002:a05:6512:3123:b0:4fd:bdf8:930d with SMTP id p3-20020a056512312300b004fdbdf8930dmr1288794lfd.22.1693396725183; Wed, 30 Aug 2023 04:58:45 -0700 (PDT) MIME-Version: 1.0 References: <01e3ff17-5088-0431-6014-82ef4e4789b2@bastelstu.be> In-Reply-To: <01e3ff17-5088-0431-6014-82ef4e4789b2@bastelstu.be> Date: Wed, 30 Aug 2023 13:58:18 +0200 Message-ID: To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000044bb4e060422a631" Subject: Re: [PHP-DEV] Casing of acronyms in class and method names From: kjarli@gmail.com (Lynn) --00000000000044bb4e060422a631 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Aug 30, 2023 at 1:44=E2=80=AFPM Tim D=C3=BCsterhus wrote: > Hi > > after suggesting the use of ucfirst(strtolower(...)) casing for acronyms > within a classname of a draft RFC, I was made aware of previous class > naming RFC (June 2017) that required the use of PascalCase for class > names, with the exception of acronyms which must be completely uppercased= : > > [...] > 2. It decreases readability. > > Especially if multiple acronyms follow each other. One example is the > PCGOneseq128XSLRR64 mentioned above: It's not clear that XSL > (XorShiftLow) and RR (RandomlyRotate) are two different acronyms. > > Likewise PDOODBC is much harder to parse than PdoOdbc. > > Another example might be JavaScript's XMLHttpRequest which incidentally > mixes both variants. According to the class naming RFC it would need to > be called XMLHTTPRequest, resulting in 8 consecutive uppercase characters= . > Thanks for bringing this up as readability is indeed an issue for me with all caps acronyms. I would much prefer Acronyms to be treated as words as this is how most people seem to use them anyway. --00000000000044bb4e060422a631--