Re: Namespaces in Core

From: Date: Tue, 07 Feb 2017 01:58:53 +0000
Subject: Re: Namespaces in Core
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-98229@lists.php.net to get a copy of this message
Hi! > I'm strongly against use of the PHP namespace as a blanket namespace for > bundled PHP extensions. The PHP namespace should be used only for > functionality that is actually in some way related to PHP. For example, the > php-ast extension could reasonably be namespaced as php\ast, as it provides > an AST for PHP specifically. Similarly the tokenizer extension could > reasonably be namespaced as php\tokenizer. Agree. If we ever need namespace for mongodb extension, it should be mongodb (choose capitalization to your liking), not php\mongodb - php\ should be things that are really php core or specifically deal with aspects of php as a language - tokenizer, syntax, etc. And having different NS for extensions in core vs. PECL makes no sense to me either - especially given that for any user of distros this distinction is completely immaterial. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#98229) next »