Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113624 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 6795 invoked from network); 19 Mar 2021 18:33:50 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Mar 2021 18:33:50 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A1A9418053E for ; Fri, 19 Mar 2021 11:28:22 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-qk1-f195.google.com (mail-qk1-f195.google.com [209.85.222.195]) (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 ; Fri, 19 Mar 2021 11:28:22 -0700 (PDT) Received: by mail-qk1-f195.google.com with SMTP id y5so2377791qkl.9 for ; Fri, 19 Mar 2021 11:28:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=avd9HHRS6yq6WGEDf4dHI8Bb8oXHTowAVg/x6w3glJ4=; b=gXWarz6WIjgj8V/6Ikb5KZuEHeC6G29mE5dcFBMA272Uir71ZQBT0ix+3QfvSTAdMt jWVNp4R4sthG0FBb/qmAIyQnRl3dBk7rKQ2MtGXUymDgoP+XHc3Bu18PvF9FZK3eAAU5 9Wld5P8ij5E5Skk5iQPb5rN9BqnDEXq5w9nohIPpncxMJxK3Mg6IiiHn4ZenDvdQRkCA cDjhC1VQ2y8w+4KRAiXEOtPFGwq3kaQDDt6D4SWz/Fp9NSaO0uInSzyIT0tDMWIrpmt9 KMlBO9b9u51MTel1J2iWNJjkfRbc4RFYY0kNWGFjCF2v2jTUxBL6EMPE3YpmsfO6YWvB Qpxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=avd9HHRS6yq6WGEDf4dHI8Bb8oXHTowAVg/x6w3glJ4=; b=IepmenqBwpCeyay03ONj2XIvnP/1oni+aYtG7euSfR3BP0gi+/R+xPhezDzJHm87U+ OvEX18Km2n8IyzNS7ZhWALp4JF0bJ7Duk1GoLOK5+6W0jD71lW3gdTmwaT+MTfYLcKbd pqFaMsVt0NVknxO+lIhjVClcnaD6mGyhXsCsUlWBCD5HLscyMumCRx/ecxe//Ke2KTM/ xuPXrjX4XQCaKdjyM0W4I9fRCwVUT2gb7dwz7Rzm4EozXtErxEIOMa90Ay+QlqvHS/os XR9cqrfhAkn6+I4L3oK5GMsRnK9FlZbacYFJKIHLiWP9bspVoXoBOgqEPoPh5GWuzq9q Jcvg== X-Gm-Message-State: AOAM5339fNq3HI0mb4CygYgZ13rAtbgIVCFbMjr8rwTv4noT30KK82uy PrDPrmVi/S36wVf54462NieXvg== X-Google-Smtp-Source: ABdhPJz/aK370BnyXL6ry/l9zO+p7lJ8xtL8LyNif4GDPP2X22kTNLqpnTmdOsBSyDw2yu6QCRg42A== X-Received: by 2002:a05:620a:e10:: with SMTP id y16mr10784252qkm.375.1616178501468; Fri, 19 Mar 2021 11:28:21 -0700 (PDT) Received: from [192.168.1.239] (c-24-98-254-8.hsd1.ga.comcast.net. [24.98.254.8]) by smtp.gmail.com with ESMTPSA id o36sm3145846qtd.89.2021.03.19.11.28.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Mar 2021 11:28:21 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) In-Reply-To: Date: Fri, 19 Mar 2021 14:28:20 -0400 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <341E78A4-B42C-4C4C-B0C5-A190187D6920@newclarity.net> References: To: Nikita Popov X-Mailer: Apple Mail (2.3608.120.23.2.4) Subject: Re: [PHP-DEV] [RFC] Namespaced in bundled extensions From: mike@newclarity.net (Mike Schinkel) > On Feb 25, 2021, at 3:26 PM, Nikita Popov = wrote: >=20 > Hi internals, >=20 > The question of namespaces in the stdlib has been coming up a lot = recently, > so I'd like to present my own stab at resolving this question: >=20 > https://wiki.php.net/rfc/namespaces_in_bundled_extensions >=20 > Relative to a number of previous (declined) proposals, the main = difference > is that I do not propose a top-level "PHP\" vendor namespace, and = instead > recommend the use of "ExtName\", in line with existing practice for > extensions. I believe this addresses the primary concern with previous > proposals. Hi Nikita, Can I request/suggest that if we are going to take this approach that = the RFC also adds an "advisory" registry for namespaces in the form of a = Github repo with parallel README.md and namespaces.json files containing = "registered" namespaces and a link for more information? The benefit of such a registry would be to allow people who want to = avoid using a namespace others are already using in public to find the = list of namespaces for code that has been published publicly. Full stop. For what I am proposing, the registry would NOT be used to _stop_ people = from using "registered" namespaces. They would be free to do so if they = chose to. The registry would instead be for those who want to ensure = their code is most likely to play nice with anyone else's code. The registration process would be as simple as submitting a PR that = includes the requested namespace added to both the README.md and the = namespaces.json file along with a link for more information. There would not be any approval process per se other than merging the = PR, and there would not be any "owner" of the registration per se as = registration would merely be a stake in the ground to recommend others = not use that same namespace.=20 I'd suggest registration of really generic namespaces would be = discouraged, but not disallowed. I envision the link to more information would be a link to a git repo = with either the code or information about the namespace in the README. = If after a namespace is registered we find that other = people/organizations are using the same namespace then the maintainers = of the repo could choose to add multiple links to the same namespace. Again, in summary, this list of "registrations" would be to allow people = to easily find out if the namespace they want to use has already been = used publicly by others, and if not to allow them to "register" it for = their use. If maintainers of the repo discover and PR behavior that is suspect, = they could bring to the internals list to discuss a resolution. But = unless and until that happens, governance of this registry would be as = minimal as possible. Is this something you can/will add to your RFC? -Mike P.S. If this existed it would be something PhpStorm (and VSCode) could = probably use to help developers who find namespaces in code to be able = to find out where they can learn more about those namespaces. And = later, the git repo could publish a namespace.json with a lot more = information about the namespace that could help PhpStorm offer even more = help to developers. #justsaying