Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123157 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 97EB61A009C for ; Fri, 19 Apr 2024 18:47:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1713552506; bh=mQUQ+QmGEN3r0WqGrRmkUc3jc7vo/2XaQJgmVvmy+JI=; h=Date:Subject:To:References:From:In-Reply-To:From; b=hq/68rEQJn0XPKWxKS62PBqD2NMStkHBUzEQIALUTJuL9wxpLU+UHrQr+Knvq1SIi WIhjuVVjMAiATSd/xqKkKvXXiHUb1Db449PfQgmVRttrrZaKQ4gLykKUFL4OLK5dSy eDNb6zEBXaMU5qx7A0H8wjrB/CgTByLGUH/wh+1jVBzIYKy4zCSyKY7UIk8EpCkaiM nxuXNlZJv41r+GXqoL+Ep6j0IAB0e4BqXpEAz60Cas9pIFFuwmtfpu1L1JIZVtX2tJ yujC6o2BlTQVs6bIaZkGJcNdIkTKaitAn5ZgE/CnlDX7YoMlK5XZHM9oVYqWbLId/Z 7ksKTNFVxDMYQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 03D17180862 for ; Fri, 19 Apr 2024 18:48:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,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=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 19 Apr 2024 18:48:24 +0000 (UTC) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-419ca3f3dd0so5014925e9.2 for ; Fri, 19 Apr 2024 11:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scriptfusion-com.20230601.gappssmtp.com; s=20230601; t=1713552465; x=1714157265; darn=lists.php.net; h=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=qjorKWh8Lm85WKKSPfdxGhCbMV/zVkusfZP881044yo=; b=D1EoAkPnNxSHuVtIOmq6f6uTZlVxStK/79NQSZsWi89/E4p4V5Qy04O+TgOEixN3Cv jPI8DQ4mUeDbk8iF2lrGGJ4oV5+GwkqnnxY2lV+Ol1zG/P2n9ErcaZRL5K/oDypAbYC9 N5fZPaH2oOysVxW8VomIk/lWF+uoKQDs2oVTBkOY9y7Xh+c4rvyaPqSSEKxjL5Djjrv5 GkOFY4w21DcgGc7Homq7GUnWEjP8Mi7OG4w3FonjOP+26bPGU6g+WMbRPzJF6yBETNVg H0gnYOXa9YsC5Bm/DfsEYBfVWEDBAemPyXfv6mG7gZY/EzEYWrNZR4/U9zdkyLFP61op y/nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713552465; x=1714157265; h=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=qjorKWh8Lm85WKKSPfdxGhCbMV/zVkusfZP881044yo=; b=xNoWR/XVSK9kzxB/uL5y8j1fB90JMZnCfWXSMY4cHNUJA+iPLQDoTvY7zzetMTqO7w fDw6rAC6goxUI7Bua7duCImQNjBiSJ+Sl1l7R+asB8CuilGRJERiqCvWGS9u2XP7Hmq7 93fTkgsR7MXB808Sm5vaGgk/vaGldBz4BThb2i9NxoMYgB4SKmtFb6fxpsNtPE6yjK4I /1n59qMnM5bDYS6t3wTRzTQziFQN+5kdhbV6K5bUz1TT2hgucruh3GNYo9yyqj3G3Zmo bc4X8xjx/NsDNhuwis8XMw4ZrKnqI2uhWXD3y8k0saYsC0tw2oWP2tBiRRVO+aZu81Rh aJCA== X-Gm-Message-State: AOJu0YwzA3YAs4qGejkOg2vYkkEyL8Yb2udzLZDJB6MGKbTN2dBiMnIv XPxvaeI9fLrv0qYahKRz7vvSzwZuULTT2w9I1BkyTjWUn2+9rV7bMp72Uv37cpLdD9qT8QiTCz8 YsRM= X-Google-Smtp-Source: AGHT+IFMNhHi0Uld2Vil/f7iRaH2/429gp8mGm/c5t/DfSncLSgpEG0xFPIdFTFB8hqZPX0N5UkVKw== X-Received: by 2002:a05:600c:1e11:b0:415:540e:74e3 with SMTP id ay17-20020a05600c1e1100b00415540e74e3mr2132318wmb.40.1713552465171; Fri, 19 Apr 2024 11:47:45 -0700 (PDT) Received: from ?IPV6:2a01:4b00:bf09:5101:4d90:9826:9595:831c? ([2a01:4b00:bf09:5101:4d90:9826:9595:831c]) by smtp.googlemail.com with ESMTPSA id m16-20020a05600c3b1000b0041496734318sm11348654wms.24.2024.04.19.11.47.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Apr 2024 11:47:44 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------JaAsf5xwbusqZ34CPOFl9hLz" Message-ID: <08200b2f-55ca-4e8f-aeb3-d5b07bf3ae3c@scriptfusion.com> Date: Fri, 19 Apr 2024 19:47:43 +0100 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [RFC] Casing of acronyms in class and method names To: internals@lists.php.net References: <792b2282-b7a3-40dd-899c-daab55353316@bastelstu.be> Content-Language: en-GB In-Reply-To: From: bilge@scriptfusion.com (Bilge) This is a multi-part message in MIME format. --------------JaAsf5xwbusqZ34CPOFl9hLz Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 19/04/2024 18:42, Tim Düsterhus wrote: > The two weeks of discussion are over now, the RFC didn't receive any > substantial changes after the initial proposal, and neither was there > any significant content-related feedback after the first few days. > > As such, I plan to open the vote early next week without making > further changes to the RFC text. > > Best regards > Tim Düsterhus Hi Tim, Not that my opinion counts for much, but I have to say I find this very odd. Good class names: Id // Identifier ID // Identity Document I understand the distinction you wish to make here, between an acronym and abbreviation, but I think it's a meaningless distinction. In this case, `Id` would be fine for "identifier", but "Identity Document" should simply be `IdentityDocument`. Whilst the distinction may seem meaningful to you, it certainly does not look that way to me; I think it would be difficult to remember and explain to someone else. Perhaps the tie breaker could be that it wouldn't be meaningful to an automated style checker, either. That is, it would be difficult to enforce this policy exception in any automated way. Why not just keep it simple and consistent here, disallowing runs of multiple upper-case letters? Cheers, Bilge --------------JaAsf5xwbusqZ34CPOFl9hLz Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 19/04/2024 18:42, Tim Düsterhus wrote:
The two weeks of discussion are over now, the RFC didn't receive any substantial changes after the initial proposal, and neither was there any significant content-related feedback after the first few days.

As such, I plan to open the vote early next week without making further changes to the RFC text.

Best regards
Tim Düsterhus

Hi Tim,

Not that my opinion counts for much, but I have to say I find this very odd.

Good class names:
Id // Identifier
ID // Identity Document

I understand the distinction you wish to make here, between an acronym and abbreviation, but I think it's a meaningless distinction. In this case, `Id` would be fine for "identifier", but "Identity Document" should simply be `IdentityDocument`. Whilst the distinction may seem meaningful to you, it certainly does not look that way to me; I think it would be difficult to remember and explain to someone else. Perhaps the tie breaker could be that it wouldn't be meaningful to an automated style checker, either. That is, it would be difficult to enforce this policy exception in any automated way. Why not just keep it simple and consistent here, disallowing runs of multiple upper-case letters?

Cheers,
Bilge

--------------JaAsf5xwbusqZ34CPOFl9hLz--