Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109968 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 45573 invoked from network); 2 May 2020 18:40:08 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 May 2020 18:40:08 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2F7E41804CE for ; Sat, 2 May 2020 10:14:21 -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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 2 May 2020 10:14:20 -0700 (PDT) Received: by mail-qk1-f171.google.com with SMTP id c10so1332275qka.4 for ; Sat, 02 May 2020 10:14:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benramsey.com; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=uwcDpMM6lpbAWxiCO2m5ZpK4rC6fH6aPpkMySoSKPcY=; b=HkbZzCznltjoDmDIkXjsqgNuDaJQLt9KlFQPGUo8GrZU4I6t/aHeZ7iZKIDyxHEqwD KlULhUvCo/+ph1Y78w1I289Xey7Qk0KltJDOjacHsUsjwipvLiqElREu+YYc2kWjDQNL Gar+obkKVdqp2HRH6eOZfW6RomUYkrWDM4+zISPbNxSZ0/D9h/U1mDJnK6CR+lXsaoth 9o8Ys7VLQuMJVZe6Gij3BvfAsuTjqBdvPE8zAVTQyfnqDxiJtt6e83mB7fvKVncP2/nK HhtnUQac5JElQ6WlP1OhNoeTrNCjemBdzm2stg6lEoRLUmX8vbeuezX2T+Bo9NKhPnFx OT8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=uwcDpMM6lpbAWxiCO2m5ZpK4rC6fH6aPpkMySoSKPcY=; b=Qg8ZgzyBqyJ0IPYdeYFOvHc+jOFFopFv1DY4gL7+AszmQzpDbKER8Q5Jg/M8mdLfI9 0Dr02EOvibq21PYkQm+Ljvwffp7sNQTiCzoB/R9hnrJbddJ/wVN4f4sO2ywt9qzFydH1 /BuyV2toTUfbgp2O56NPNu0pte3h95Ggqb76FcipVmFHM2pkZS85dRFxWWgz1TxZcct+ NHBPVMv8hIxRVc5LDPJOnuU0sLVcA3E8ozz+f/kdUfS1Yw/oPSC8L1YudVvAnuknSNrJ 5CYgTJUt+A3EKLOmfRIWXOwtS3ewO8XR2EwVecdBHZBLDNJrVyciNADpcMGHjZUqhjkk IX/A== X-Gm-Message-State: AGi0PuY4rIunXHvCaGuCXLyERU6Hlm7IZYXvQavPTw2U8xMbDK/WERM5 gftJOwDGrmI7hIxOtj0OSRHKPg== X-Google-Smtp-Source: APiQypIIE05seSJ5xE1oGmk9fYiFaayrKXOwzl1meYvWXoqIb4Wp7yT36SvTZguUzpm48J5Gfx7zwQ== X-Received: by 2002:a37:a45:: with SMTP id 66mr8720663qkk.395.1588439658237; Sat, 02 May 2020 10:14:18 -0700 (PDT) Received: from [10.10.42.56] (h96-61-170-50.lvrgtn.dsl.dynamic.tds.net. [96.61.170.50]) by smtp.gmail.com with ESMTPSA id u5sm5550124qkm.116.2020.05.02.10.14.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 May 2020 10:14:16 -0700 (PDT) Message-ID: <8072D361-DAA2-44D3-B0E4-F656169F2BBB@benramsey.com> Content-Type: multipart/signed; boundary="Apple-Mail=_1030FD48-7F7B-480F-884C-39CEAC46E4AA"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Date: Sat, 2 May 2020 12:14:14 -0500 In-Reply-To: Cc: Benas IML , Chase Peeler , =?utf-8?Q?C=C3=B4me_Chilliet?= , PHP Internals List To: Davey Shafik References: <4063585.LhOdPkFbeG@mcmic-probook> X-Mailer: Apple Mail (2.3608.60.0.2.5) Subject: Re: [PHP-DEV] Renaming PhpAttribute to Attribute From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_1030FD48-7F7B-480F-884C-39CEAC46E4AA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Davey Shafik wrote: >=20 >> I believe that using the PHP namespace is the right way to go, and = look >> forward to seeing code like this in the future: >>=20 >> > namespace Dshafik; >>=20 >> use PHP\Attribute; >>=20 >> <> >> class Foo { } > Chase Peeler wrote: >=20 >> I don't think PhpAttribute is a bad name [...] nor is it logically = inconsistent with other Php* named classes. > Rowan Tommins wrote: >=20 >> One of the things I dislike about "PhpAttribute" is that it's still = really generic - I know I'm writing PHP, so it feels like broken = Hungarian notation ("class FooClass extends BarInterface") rather than = an actual name. I=E2=80=99ve been trying to think through other naming schemes that = could set a good precedent for these discussions as we move forward, = since I think this will continue to be a topic of discussion. So, I tried to think of alternate schemes, such as introducing a = root-level attributes namespace (e.g. `Attributes\Attribute` and = `Attributes\CompilerAttribute`, or `PhpAttributes\Attribute`, etc.), but = that would see arbitrary namespaces proliferate in the core, and the = potential for collisions with userland code would be even greater. I=E2=80=99m starting to come around to Davey=E2=80=99s way of thinking = here, but I don=E2=80=99t know if I=E2=80=99m quite there yet. Perhaps we change `PhpCompilerAttribute` to `CompilerAttribute` and = rename `Attribute`/`PhpAttribute` to `UserlandAttribute`? It seems = that=E2=80=99s the distinction we=E2=80=99re attempting to make with = these names. Cheers, Ben --Apple-Mail=_1030FD48-7F7B-480F-884C-39CEAC46E4AA Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCXq2qZgAKCRCwLZeYnIwH GxZyAP9jQozGfErotTm/Sh0HRtZS04MClLfxC2VqOZ4QaqEorwD+Mv1jjsO5/X/m wn9tKtgSDzxqPBcE34nfdyEPD+Jk2T4= =vnHl -----END PGP SIGNATURE----- --Apple-Mail=_1030FD48-7F7B-480F-884C-39CEAC46E4AA--