Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123158 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 BD7ED1A009C for ; Fri, 19 Apr 2024 19:09:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1713553794; bh=36t90pZgwAaLpldYnVV9Kky+Lw34DNuzU6fQ03I7C8U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=gLDrH3y35rCQx/rcmORcjYXFrPzIIG8Q5telrWwwQjtWau1sqE5ZbIIbUL7xbJCL5 hqgYxqV5oygeX7bWrfC7YEJZJdqH61sCzd2bSHR1yAUT8FXyCIwdFEJdhEQ0SsnDj4 R84fRlAbKui7uGx8j3+VPsPipwsJntKRU3BOGNilnIfOmCD/sNmDtfZI67xkcLvw7w q8CT1mGOfxC6W2xXvH5nip1aAMuO60Oa/RYp9idQ3yZbfF6LdKWt1u+kLrTqQki0DU 5QT+gQR4nBTW7gg4P2RurPlXRbhYF/NKZpjBjzM2qcm/zDgjK/hPM6GE5+3jjLuoM1 wzyKugrWzXDnA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0B46E180056 for ; Fri, 19 Apr 2024 19:09:51 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,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=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 19:09:50 +0000 (UTC) Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a555b203587so268539366b.3 for ; Fri, 19 Apr 2024 12:09:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713553751; x=1714158551; 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=5Ddf4AMC6Jen5BFFSzE3gi7m2x1bxcfLBr4bVy1NOQc=; b=OCAxubiZnRtEsLOfoanhI43/Bbe53EuzrTzu4nptCdOvbFNUDfVQQEXbjnCXMN4Rx5 zrmfzBE4cNrBqeeFYKud+lIywA4JJxIfQPbuit3b7pIRzkXBKTkpjH/PFtEO9zIsf/b6 Ua+i3tPCdgOb1K+PJn6X/5HKOcLIwWQHxW3Y+QGs/wKh3nikA1x1R6F8T9ZXrr6UalyN rO/MIhwyKql/oD9e9pL4fHJlaNYYIiWWyVL4bJ6hQ17ibGlMsJ8vZkYPqyWVTDerZ1z2 qbMUDb8nH/v1D3vNYa8e/e/6gAn9ARXRuWmMMkmo7vaz4FeD4PHKJBUCldlrIBNyLp7t GvoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713553751; x=1714158551; 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=5Ddf4AMC6Jen5BFFSzE3gi7m2x1bxcfLBr4bVy1NOQc=; b=DAync3ZOBaev58xttbhaJgERhOLHaqdDa6/PPqVR0cPOiVHWZnMbPCdfEdUqx6IAcC wzImebMxEE6tXRg6fR7jukA46C+fYAjuMdgmaP53aD0bQizPrlDaF+Wdoyo/h8uUI9DW iOCw6mZSWs7l5HkoexG2zT7uk4yqOhOBeh3TZv83UW0IBU1MU8wJ/khWwSRVeI62uldA MAaByS0AYMsqk5C3OrYtZ8Z+oYhi5WI9xAhzyQDUbG/NRWnWcW9I4HNGl/Lf7HBUAF83 CDsRLG0OLwyzh8crPmQqNd6ZNjCGJwSLRo25zzX2MJ3N5VxZ7dzY1+zs+IfHT18UO7aC z29w== X-Gm-Message-State: AOJu0YznAEwJgmlNT3zBaSu2tAO9YKajEgONUro79D0eefeUlbo2BDJW ZFJg70qWWUnLL99RN7g6kmOxY/x95m3Fn5B1/KWVmY03OnlUR2jQKuVY0j3gpjWLihIjoQcbEEB VB/9N55OHCWgRB1Uy8YwYvPa6gUaPhQ== X-Google-Smtp-Source: AGHT+IHoeEsImJgkUkppymS9LXV2T7brtdTKPQLaU8znRNW+ru8J5SHF0Ai/54hYg5Mox809OKsmv5VrqQZuZZzJCZU= X-Received: by 2002:a17:906:5643:b0:a55:648f:3f03 with SMTP id v3-20020a170906564300b00a55648f3f03mr2276698ejr.53.1713553751134; Fri, 19 Apr 2024 12:09:11 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: <792b2282-b7a3-40dd-899c-daab55353316@bastelstu.be> <08200b2f-55ca-4e8f-aeb3-d5b07bf3ae3c@scriptfusion.com> In-Reply-To: <08200b2f-55ca-4e8f-aeb3-d5b07bf3ae3c@scriptfusion.com> Date: Fri, 19 Apr 2024 21:08:44 +0200 Message-ID: Subject: Re: [PHP-DEV] [RFC] Casing of acronyms in class and method names To: Bilge Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000a3dc96061677d2fb" From: kjarli@gmail.com (Lynn) --000000000000a3dc96061677d2fb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Apr 19, 2024 at 8:50=E2=80=AFPM Bilge wrot= e: > On 19/04/2024 18:42, Tim D=C3=BCsterhus 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=C3=BCsterhus > > 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 an= d > abbreviation, but I think it's a meaningless distinction. In this case, > `Id` would be fine for "identifier", but "Identity Document" should simpl= y > 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 th= at > 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 > I was under the impression that this RFC was trying to solve exactly that, so I'm surprised to see that ID would be allowed. --000000000000a3dc96061677d2fb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Fri, Apr 19, 2024 at 8:50=E2=80=AF= PM Bilge <bilge@scriptfusion.c= om> 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=C3=BCsterhus

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&qu= ot;, 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

I was under the impression that = this RFC was trying to solve exactly that, so I'm surprised=C2=A0to see= that ID would be allowed.
--000000000000a3dc96061677d2fb--