Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109647 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 71694 invoked from network); 15 Apr 2020 12:53:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Apr 2020 12:53:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EA46E1804B4 for ; Wed, 15 Apr 2020 04:23:37 -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.1 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_NEUTRAL autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS30827 82.113.144.0/21 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) by php-smtp4.php.net (Postfix) with ESMTP for ; Wed, 15 Apr 2020 04:23:37 -0700 (PDT) Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 4E25E10C00E; Wed, 15 Apr 2020 12:23:36 +0100 (BST) Date: Wed, 15 Apr 2020 12:23:36 +0100 (BST) X-X-Sender: derick@singlemalt.home.derickrethans.nl To: Mark Randall cc: internals@lists.php.net In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [PHP-DEV] [RFC] PHP Namespace Policy From: derick@php.net (Derick Rethans) Hi Mark, On Wed, 15 Apr 2020, Mark Randall wrote: > I would like to re-open the discussion on properly reserving the \PHP > namespace for the use of the engine and its core extensions. I will be voting no against this. The RFC states: By design this RFC does NOT propose moving anything existing into the \PHP namespace at this time, only that the policy is set that it is the preferred mechanism for future development. This will mean that in a future version of PHP, some things will live in a \PHP namespace, and others, such as DateTimeImmutable or Directory do not. We should not be introducing inconsistencies. It also says: \PHP (must be empty except for other namespaces) Which means new additions to PHP 8, such as a potential PhpAttribute, now would have been \PHP\Engine\Attribute, while we already have PhpToken. That is another inconsistency that we don't need. I would potentially be OK with having both \PHP\Token and \PHP\Attribute, as in PHP 8 these engine related classes are being introduced for a first time (as far as I am aware). cheers, Derick -- PHP 7.4 Release Manager Host of PHP Internals News: https://phpinternals.news Like Xdebug? Consider supporting me: https://xdebug.org/support https://derickrethans.nl | https://xdebug.org | https://dram.io twitter: @derickr and @xdebug