Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99241 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68872 invoked from network); 29 May 2017 22:14:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 May 2017 22:14:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fleshgrinder.com from 77.244.243.82 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 77.244.243.82 mx101.easyname.com Received: from [77.244.243.82] ([77.244.243.82:59656] helo=mx101.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AA/38-34073-63D9C295 for ; Mon, 29 May 2017 18:14:14 -0400 Received: from cable-81-173-132-37.netcologne.de ([81.173.132.37] helo=[192.168.178.20]) by mx.easyname.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dFSvO-0003Qs-N0 for internals@lists.php.net; Mon, 29 May 2017 22:14:10 +0000 To: php-internals Message-ID: <9dffe898-e550-c6d6-46bd-86dcf74735ea@fleshgrinder.com> Date: Tue, 30 May 2017 00:13:54 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aPXGcv72bJRrbmMLvjW4MjspeMlj1Ls1d" X-DNSBL-PBLSPAMHAUS: YES Subject: Class Naming in Core From: php@fleshgrinder.com (Fleshgrinder) --aPXGcv72bJRrbmMLvjW4MjspeMlj1Ls1d Content-Type: multipart/mixed; boundary="wOm8XkVfjC3Bqo2BVKKXaj0RMfJKPsUR1"; protected-headers="v1" From: Fleshgrinder To: php-internals Message-ID: <9dffe898-e550-c6d6-46bd-86dcf74735ea@fleshgrinder.com> Subject: Class Naming in Core --wOm8XkVfjC3Bqo2BVKKXaj0RMfJKPsUR1 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hey guys! People are complaining over at Reddit [1] about using PHP, Std, UUID, =2E.. in other words about case. I know that this is probably a topic nobody cares much about, at least we did not end up in this kind of bikeshedding in the UUID discussion thread, but it is after all an important question when designing a langua= ge. Our coding standards are extremely unspecific about this kind of problem, the only thing that is written there is to avoid abbreviations, and acronyms are not mentioned at all: https://github.com/php/php-src/blob/master/CODING_STANDARDS#L154-L166 The question is, what would you guys want? The PHP community that follows the PSR rules is using PascalCase everywhere. The PHP core is inconsistent: - PascalCase: - Spl instead of SPL (Standard PHP Library) - Abbreviation/Acronym (Java style): - Intl - GMP - DOM - XML* I guess that already covers most of the stuff that is actually part of the core. This is also exactly why I chose to go for UUID and not Uuid. Personally I am fine with both, but we probably should extend the coding standards to create a source of truth, or otherwise people will continue to complain about this. [1] https://www.reddit.com/r/PHP/comments/6e24pr/rfc_phpstduuid_namespaced_in= _core/ --=20 Richard "Fleshgrinder" Fussenegger --wOm8XkVfjC3Bqo2BVKKXaj0RMfJKPsUR1-- --aPXGcv72bJRrbmMLvjW4MjspeMlj1Ls1d Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZLJ0rAAoJEOKkKcqFPVVrBJEQAKph+diPcrc3UU3hL8pwc8tB WwOW4NzJw7nXcHB6pjNfxPR0CIlyOi5/KdHBCj9pKFlBUq1CC3mEjeVFzdX/fy+q bgKt64er2KZUXpUk9nhh2qsHqAnIvRcQTN0S76moH8y4fDSfaw6OgSDiZYHkw32D oSfD1rLMj8dqdOrLp6E5zQxmcvSH48VeyvHkfRa7X9fJYif74miv1OIAjaj+XoEX LndOsfl08SMNsiydyJPAA77bv3jlPCX/Hel/EUoRB9FGDCEUSxc2d9uDCU6qSrtv KM4WDMmbGTE7rColn24drsMt//RMvptJr1NQc5pjfvZGq+hVIgwnPyfXzljfSTHj 8WAITObXii/Hz2pgyZW7vvnjKjzcwOQwucpCBWsIHvrtqak5M0METeHs9dECaen0 /pzxLztUxnfX7aPZaMux4sdj7K+Ikq5QlorbnwMhXZKfq+6TfVf1nOrAqEncn5Ql 0bcZHBbW4Hvae3qwlLmWVqrQUBhTChx9ALJEpO5xb6x3iDB5tCfxsxEcYGlZiTw0 veWEzGZrTHK7SjTRXcMjQqYoZbUg0Vii+Q1q61G3Abm6GE+FDkrBAYoEFfH0VHhv 2ZP3eOvCKxfkihqLvezAb3gYLXoP8oYov/ZrL1HWqJMfa0gFE9d984vUzBoWPR3O sJ1qsLvZsN88igYxutez =SZr7 -----END PGP SIGNATURE----- --aPXGcv72bJRrbmMLvjW4MjspeMlj1Ls1d--