Re: [RFC][DISCUSSION] PHP Namespace in core

From: Date: Tue, 21 Apr 2020 05:29:27 +0000
Subject: Re: [RFC][DISCUSSION] PHP Namespace in core
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-109739@lists.php.net to get a copy of this message
I have been wondering for a while why PHP does not officially recognize a \PHP namespace. The inconsistency people have mentioned feels like a fair tradeoff for allowing new core classes to be cleanly-named and easier to understand. And a \PHP namespace would allow RFCs to never need worry about conflicting with userland class names again. The one thing I would ask the authors: - Why limit it to "tightly coupled to the PHP engine?" - Why not just say "any new core classes that are approved to use it?" After all, sometimes a namespace is just a namespace. Seems like a winner to me. -Mike

« previous php.internals (#109739) next »