Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120967 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 64170 invoked from network); 31 Aug 2023 18:34:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 31 Aug 2023 18:34:25 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8A282180083 for ; Thu, 31 Aug 2023 11:34:24 -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, 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-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (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 ; Thu, 31 Aug 2023 11:34:24 -0700 (PDT) Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-2b9d07a8d84so19899291fa.3 for ; Thu, 31 Aug 2023 11:34:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693506862; x=1694111662; darn=lists.php.net; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=mGFPuWLTYavDYrFsB+hBV0JrSsE938f3H4K60sQdR28=; b=qtge4FYUYvX1MdUPm0NQs/3nxUvkvCjN0e58zv5dKCDnQLjw4pjqqL9nx8Zz2wu7sU JoBoUvD4zIKFhDiKfJTYgaFnp/0rc87jX+8oKshsD8WOCM86O9Fl8A9Wdn1WQ1JKhHPx kw0sUr0IL0K5LmOqQGf7dQlgzPPbGJT2VNDleX/1IGDa0PZtBQ5JebbLA+gXNXG9X0c+ cFgn6Fr9y45dt++2Y3KNc5DKjtDPCRw0hgI7KcBmeOMST7TrJaoowMRJczaNLvaubQCj oDzL78U3bWxcYbbUaGtLdlaMYjjh3u/t4bM4Wi3Ih9x6WuWY/6fm5spUDAsh72cOc3pU yPAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693506862; x=1694111662; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mGFPuWLTYavDYrFsB+hBV0JrSsE938f3H4K60sQdR28=; b=hpcHbxM084Yyr6tH7pwWOX4+czE6dgW0yn5r4RLBSNjdiSQbCWRrbUL5Gg9DHtoKv5 gvc86A8V4H+ysMg5jxpachqEoopSEVmmtCCojOCYnZE7UT6rmjl0Sj2yy7Fc+QsEFOBc FATt7rKBYMUTPZHQbiFZqXYRa+U0i5qyIQyZJUfMFRS0FwzUxx2mdIbwpPrBiTATfTyS kTgKCDXLAKyQVewOQytJmpVfel9wdsBBQ+0fz4b4wwqTnRa52OwgrssrtSqwFnyMwnsD IOkdf+jvTh9TLFwKWuA4ZRV7NcxrYwCigzpUlM8N5aIZJjNKWphH2Ngwx1zeqzg6Haoz MhEw== X-Gm-Message-State: AOJu0Yw1tbr4+3Xc+4IGYN5w0OzADzyKnOTYAypTNEeDST1Wmu66Orwf 10NDu7BHqTTwwwCk0o2YUNn2lcjibTM= X-Google-Smtp-Source: AGHT+IHkgTNyPMlHoxOXWgDbVVyt5RGy036uOhTbYgnRFpvXJUduxjvUtm421706nw6v+ygUmW/VnA== X-Received: by 2002:a2e:9a8e:0:b0:2bc:b9cd:8bc2 with SMTP id p14-20020a2e9a8e000000b002bcb9cd8bc2mr48790lji.4.1693506861970; Thu, 31 Aug 2023 11:34:21 -0700 (PDT) Received: from ?IPV6:2a02:1811:cc83:ee50:280e:1e36:3a00:824? (ptr-dtfv08akcem5xburtic.18120a2.ip6.access.telenet.be. [2a02:1811:cc83:ee50:280e:1e36:3a00:824]) by smtp.gmail.com with ESMTPSA id sb5-20020a170906edc500b0099293cdbc98sm1040841ejb.145.2023.08.31.11.34.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 31 Aug 2023 11:34:21 -0700 (PDT) Message-ID: <48699eff-c0d1-43de-b68e-2327fa601528@gmail.com> Date: Thu, 31 Aug 2023 20:34:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: internals@lists.php.net References: <01e3ff17-5088-0431-6014-82ef4e4789b2@bastelstu.be> Content-Language: en-US In-Reply-To: <01e3ff17-5088-0431-6014-82ef4e4789b2@bastelstu.be> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Casing of acronyms in class and method names From: dossche.niels@gmail.com (Niels Dossche) Hi Tim On 30/08/2023 13:43, Tim Düsterhus 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: > > https://wiki.php.net/rfc/class-naming > > I'd like to propose to revisit this earlier decision for the following reasons. Before writing an RFC I'd like have some pre-discussion to gauge opinions. > > -------------------- > > 1. It is not consistently applied: > [...] I think it's a good idea to change the rules to reality as much as possible. Especially given that recent additions seem to follow what you're proposing. > > 2. It decreases readability. > > [...] Agreed. > > 3. Several commonly used userland libraries make a different choice. > > - Symfony's HttpFoundation: https://github.com/symfony/symfony/tree/6.4/src/Symfony/Component/HttpFoundation > - Symfony's CssSelector: https://github.com/symfony/symfony/tree/6.4/src/Symfony/Component/CssSelector > - Laravel's HtmlString: https://github.com/laravel/framework/blob/10.x/src/Illuminate/Support/HtmlString.php > - PSR-7: https://www.php-fig.org/psr/psr-7/ > - PSR-18: https://www.php-fig.org/psr/psr-18/ > - ramsey/uuid: https://github.com/ramsey/uuid/tree/4.x/src > - Flysystem is a little inconsistent, but has 'Ftp': https://github.com/thephpleague/flysystem/tree/3.x/src/Ftp > - PHPUnit is a little inconsistent, but has 'Xml' and 'Json': https://github.com/sebastianbergmann/phpunit/tree/main/src/Util > - Doctrine is also a little inconsistent, but has 'Dsn' and 'Sql' (but also 'SQL'): https://github.com/doctrine/dbal/tree/3.6.x/src/Schema/Visitor and https://github.com/doctrine/dbal/blob/3.6.x/src/Tools/DsnParser.php > > Best regards > Tim Düsterhus > Kind regards Niels