Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118016 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 20108 invoked from network); 20 Jun 2022 13:36:29 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Jun 2022 13:36:29 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DD50C1804D4 for ; Mon, 20 Jun 2022 08:25:27 -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=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLY, NICE_REPLY_A,RCVD_IN_DNSWL_LOW,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: AS8560 212.227.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 20 Jun 2022 08:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1655738725; bh=qF7IEwCyThpqHgzVg0IY9INkmoaNcq/Q2Cg/4g6lBEs=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=NrAg40kXhoi7uDC0+5P6lYa/i2qGAfeov1x2+yJosHld92hfEHGICr4KGJovprHDI lrP4IF+XmRIlXmdD5HxsHnSX/usvhIYcUvtDtVgxwQJf/DTOdb8wjWbORy8ZN5dKMM BiNQJqVZ15BqjNLnTDvPsdMRAl/L13aseef+8VYY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.2.130] ([79.251.200.221]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N79yG-1nbm0G3Vls-017WsV; Mon, 20 Jun 2022 17:25:24 +0200 Message-ID: <376a90af-8709-012c-76ee-fa351d1b017c@gmx.de> Date: Mon, 20 Jun 2022 17:25:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Content-Language: de-DE To: Go Kudo , Lynn , PHP internals References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:FKcU1J/VmJMd5jzjZe0Og9/a6YjzMor33Z4VkAbvmOIWz2maAwT dbdbhAVTNRGS42EeVn3b1BsW2TWleRNFFB3kMrtKWqhjByApDD7YZO5IdTNbqUsWGQwT4LU Yf34UGjnVF0KBYUqDHV7YwBfvkAQd97H0U3NM0M74devtTusDRbjlp4LCJV0YSoCJjMlvHR vavAklQcCHGP1ahxhmDOA== X-UI-Out-Filterresults: notjunk:1;V03:K0:kZe/OCMp71w=:yI7JtBmUvx36wg1fbhMu3U nrrP+t3mmS8EbFyHxBN25eth7Dp26k0NbASFoOI5a2SGltPplmDY1OwDtCM3sDe0Mu5qjggPb EkGnupZiTFCy0svYj0ia/eJ3aXso1UY1W8CeGN5lw772aIkN/w3pxfdu8YQqWQhq/Hdd7dE+J rskmK5PpLPJmp1P0OdnGx1hdgzTzHTQkFzZedQ9p8XQbracY93J5tcnNSrYWT0TcNQqkz8xZk CkSC2vFw6mOjProj9Y+zSdGrdduLemCW8LKfv2kuS9AUhlim+jiMsMOSqcsw9beJy92PN5fIG yHO7Css3si8/pNXkrVoObhsVQPMpA/+/qcOclru83cyyuDq4YXj1QvtSkyQA/HsNzMCo2VLH2 qd5Dd9s211T4Ar64tGmChKgVrQ7WIVul94VbEpYpJNpUgoNMljz2oebzZq22RTu+Oo0mziQGM XhVNtUK+uuJGyplx+lJ4o/E7cPithhBfUA4eMDWjbO5EFRyZLhDB10m+GZo1477Itksx1CtA2 2I2hoy8pk0JKvEJbjoBs+gpWFHnpJnVT3vlaknTGHU3+4itojHYEtN2PZAYXv7PjL22CL74Il SaAPxoDG+OIXJfdP6zofOcXjmVdB2hahmDNmnAbl0cnbp1crQ0kggqosXy7SJFT85qrxdjXzT BcQ0RYQ/t+PSdbgUIkvMTvTLugNJaEo9baxwdaKqmwrARfVSgvY/9xdGfub68MFaOpOerd6s9 GPf9PQeVQUFk5ITQhmeESeU6gqi4SxVCH2imnevo+8boDAm+jnrue8KsUR1FrGHFlTCuq7t5o fLjncOBgic5EpOgZKoH7TkDM0K9rdnE8PjBEGypz5VQ4KNRI2462UxYNaPErQ9mvw3qlWRUDB SJjO/l3/N/pbeyoMvi53eJP2lsEDscX1KmiCyLskQzUJRnNAGuq3S2LdjpZXdq9FnkXCi1i7e hQ8ua6LWn6TyuVvoT0GiWvgxRB3kvGM7IcbQpHTtQ+lajSqKk8LdHFCsgoptyLDNKSxB6ACvt QORCn7cV7qXRqvn++Oa3Ceikb4qOHuZRbpWzUUchmitwQ627LMcHNkgCaemqvz4fqDTBQoXX1 8dV+OT/V8PmPaKLRKGXAkJemSvtZqnFCpB4GL+L1agbY5RN9lT7zIOUmA== Subject: Re: [PHP-DEV] [RFC] [Under Discussion] Random Extension Improvement From: cmbecker69@gmx.de ("Christoph M. Becker") On 20.06.2022 at 16:44, Go Kudo wrote: > 2022=E5=B9=B46=E6=9C=8820=E6=97=A5(=E6=9C=88) 23:37 Lynn : > >> On Mon, Jun 20, 2022 at 3:15 PM Guilliam Xavier > wrote: >> >>>> https://wiki.php.net/rfc/random_extension_improvement >>> >>> Thanks, but I am not sure about your argument in "Classnames are not >>> canonicalized": does "PHP applies strict PascalCase to class names" >>> (which remains to be proved) really imply to rename *acronyms* (e.g. >>> "CombinedLCG" to "CombinedLcg")? especially given existing classes >>> like "SimpleXMLElement" (not "SimpleXmlElement"), and that the >>> accepted "Class Naming" RFC (https://wiki.php.net/rfc/class-naming) >>> voted for "PascalCase except Acronyms" (not "Always PascalCase") -- >>> excerpts: >> >> 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 eve= r >> 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. > > I support "PascalCase except Acronyms" for readability, but would like t= o > see this > clarified as I get very lost when implementing new features. > I think it is necessary because I expect various OO APIs will be added i= n > the future, > like cURL. In my opinion, was a bit unfortunate. It may have been better to decide on a case by case basis. For instance, we have introduced several Curl* classes in PHP 8.0[1], and these adhere to the appropriate example in the RFC, although CURL is clearly an acronym[2], and the canonical spelling is even cURL. Maybe even worse, the previously introduced CURLFile[3] uses different capitalization, and CURLStringFile[4] which was introduced in PHP 8.1 is aligned to that spelling. So, obviously, the RFC didn't have a good impact on some of the namings so far. [1] [2] [3] [4] =2D- Christoph M. Becker