Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114057 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 17656 invoked from network); 14 Apr 2021 15:38:14 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 14 Apr 2021 15:38:14 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CEEBD18050A for ; Wed, 14 Apr 2021 08:39:17 -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.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (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, 14 Apr 2021 08:39:17 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 19BE212B8 for ; Wed, 14 Apr 2021 11:39:16 -0400 (EDT) Received: from imap8 ([10.202.2.58]) by compute4.internal (MEProxy); Wed, 14 Apr 2021 11:39:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=b1iwj/ HTVpEBw41E0QUQ96TBUlvBo9UGlInqTXN9pwg=; b=fKYRfxt9ioBR5CiNxIzQk4 IOaziIdcpcl9xR1jQDxp7iq+0apz+OUjDXVJub1Ltxdte41c42pyVnQdynA9+Hbr KrrWwuWrz4kZifWxGkHI4d9YaX3Dj1lcTf4SKkOHC1GTqdOEUGBWd3PYaa4bqPpB H7lQDRjVIUNCicTypM/KkTIEX3Y8Qj2ke2pYNz67oJ2d3Ro9d7WNREWk0172kvxa Tu4tAHjWXjnArzv2UKnlc5lmL0qKcZ+I5luGzTfhMaBphWImrDBlyYzJMvbMQL3/ nw1y0vpHD/BL0Nj0n3fRy2Z6iF9DK1wxa9Iskt7Ry3+aMX6ZtKHGg34+54Is+T/g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudeluddgledvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeeglefgkeduiedvvdetffeujefftdfhjeeiveehgfff keduveektddvledvvdfffeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3129D3A0130; Wed, 14 Apr 2021 11:39:15 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-273-g8500d2492d-fm-20210323.002-g8500d249 Mime-Version: 1.0 Message-ID: <66e4d926-0d3a-4588-b5a6-ddd863de3ecf@www.fastmail.com> In-Reply-To: References: Date: Wed, 14 Apr 2021 10:38:55 -0500 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] [RFC] Namespaced in bundled extensions From: larry@garfieldtech.com ("Larry Garfield") On Wed, Apr 14, 2021, at 9:52 AM, Nikita Popov wrote: > >> > All symbols defined in the extension should be part of the top-level > >> namespace or a sub-namespace. > >> > >> This should be clarified - do you mean **the extension's** top-level > >> namespace (e.g. OpenSSL) instead of the global namespace? I assume the > >> former. > >> > > > > Indeed, that's what I meant. I've added the extra word. > > > > Regards, > > Nikita > > > > I've now added an explicit section regarding namespace collisions to the > RFC, and tweaked some of the examples (String\contains, Array\contains). > > If there's no further feedback I'll open voting soon. > > Regards, > Nikita Thanks, Nikita. Only one remaining question/comment/request from my end: In the "Migration of existing symbols" section, can you clarify explicitly that this RFC does not preclude such migration proposals in the future? The reading of the previous section could easily be taken in the future to mean "and existing code is stuck where it is forever", even if that's not the intent. Eg, it's fine that the RFC does not propose mass-migrating all str_* functions to Str\*, but if someone in the future proposes doing that migration (with shims/aliases), that should be able to stand on its own merits. I want to preempt anyone trying to respond in such a discussion "the original RFC said they wouldn't move, so you can't do this migration RFC now," because I'm sure someone will try to use that angle in the future should such a proposal appear. :-) Thanks again. --Larry Garfield