Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109924 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 9128 invoked from network); 29 Apr 2020 15:24:51 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Apr 2020 15:24:51 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 264D31804CA for ; Wed, 29 Apr 2020 06:58:16 -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,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 ; Wed, 29 Apr 2020 06:58:15 -0700 (PDT) Received: by mail-lf1-f43.google.com with SMTP id 188so1725997lfa.10 for ; Wed, 29 Apr 2020 06:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=miLVqc5h7Y6APVzd7paoVCKIHcGZwZ93wa4XEHYmij8=; b=Fa33PYGifl2rylpYLWbhT13H1gFVH71f4tNqEoQPZayanc+8b/pwjgn8pDUcbSA9PS twpXhqMBDhGESHkX+mWg+fGUbhcg4UAY7jmLKxeumxRPpL3AvUamNH/tS+jG6BiIc7Mc lBVv+ZGqsrSovnKpbmbm49kuhMxbN93fOXxS494ecL2Nl1gON9Kgi/nFbds7IPYT2zsE bb5GedJIADHwcRmJmSymklPbb0FAvzdZgPl8FXqyny9qBh+MpK3+pLK0XWP76PW39rLp IvS9UPYC0Eue0Xg+QLNY2fX0+a4neTK6v+Jjhjx1oh5X/1LpT9q6Qn5JNBwmm52T8Mmd oqTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=miLVqc5h7Y6APVzd7paoVCKIHcGZwZ93wa4XEHYmij8=; b=DbM8GYu4kDFDvvsfrwuqZZ8vKE1429uFsj1C2cfdi0D39oldcvnuk0zLuAh6rSCS5B lKD7AmjixPuCb7RcOqcIZvntjo6/Ckpyc2+Dtu9rRxic/qf7hOlurQhOvZ8JYNa2Pj5c FkBAxzH2syPQWPGP3jeV6/hQLuhAymv6nGh2X4Ucv6ppBzR98Le8Rlnjy4wOr7eI40Yg a2Rkp4YXEfda7bW3LkIvV5cqaE+6TB0gkmXuYa/iUfgcvp1CnBvBwi3e4ZoXUyhOTQ5P qSQDyiEbixwND/uiB7Qu7ohmba8sMmY57O05K3HHVTorItxE65hPT1QYDTV38jQzEgaA AHZw== X-Gm-Message-State: AGi0PuZasLMJj6QjLLuj44aMNVJu5tavDTKcQwnPBWP3u9MjUpg3igH7 kjFNl5+SkzTvQiTWN5e6wWi5y2J+vdH99oqarU3Ld4s5 X-Google-Smtp-Source: APiQypIANMzc3jrCGyAmbppd0fGFejmxDLnW+hkwDwd5Cq3QU9Ivqg1K9uea2UMDxEfbUGHN44LNllQYxK1pUd4Tv+8= X-Received: by 2002:a05:6512:242:: with SMTP id b2mr23290521lfo.92.1588168691907; Wed, 29 Apr 2020 06:58:11 -0700 (PDT) MIME-Version: 1.0 References: <4063585.LhOdPkFbeG@mcmic-probook> <3884830.k3x24Gr3VI@mcmic-probook> In-Reply-To: <3884830.k3x24Gr3VI@mcmic-probook> Date: Wed, 29 Apr 2020 15:57:55 +0200 Message-ID: To: =?UTF-8?Q?C=C3=B4me_Chilliet?= Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000b97f9e05a46e5694" Subject: Re: [PHP-DEV] Renaming PhpAttribute to Attribute From: nikita.ppv@gmail.com (Nikita Popov) --000000000000b97f9e05a46e5694 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 29, 2020 at 3:24 PM C=C3=B4me Chilliet < come.chilliet@fusiondirectory.org> wrote: > Le mercredi 29 avril 2020, 14:58:02 CEST Nikita Popov a =C3=A9crit : > > On Wed, Apr 29, 2020 at 2:51 PM C=C3=B4me Chilliet < > > come.chilliet@fusiondirectory.org> wrote: > > > Le mardi 28 avril 2020, 18:59:22 CEST Benas IML a =C3=A9crit : > > > > Could you provide any examples as to where '\Attribute' is being > used in > > > the > > > > wild? I haven't seen a single project that has an Attribute class a= nd > > > uses the > > > > global namespace. > > > > > > We do use an Attribute class in FusionDirectory: > > > > https://gitlab.fusiondirectory.org/fusiondirectory/fd/-/blob/1.4-dev/incl= ude/simpleplugin/class_Attribute.inc > > > > > > I=E2=80=99d expect a lot of projects to have an Attribute class, sinc= e there > are > > > things named attributes in lots of contexts. > > > > Great! You have discovered a nice opportunity to finally move your code > > into the FusionDirectory namespace. > > > > PHP reserves (de facto if not de jure) the global namespace for it's ow= n > > purposes. If you want to place classes in the global namespace, without > > prefixing them, that's fine, but please don't complain if there are > clashes. > > This is a bit harsh, I did not complain, I provided an example of project > to someone who wrote =C2=ABCould you provide any examples=C2=BB. > I can, so I did. > Sorry for the snark! To rephrase my mail in a more neutral fashion: I don't think we should be taking potential naming clashes *in the global namespace* into account at all, independently of whether we know that specific clashes exist or not. The only naming clashes we should be concerned about are those that affect namespaced code. However, these are only created by the introduction of new keywords, or new reserved class names (like "mixed" if we introduce a mixed type), not the introduction of new classes. Nikita --000000000000b97f9e05a46e5694--