Re: [RFC] PHP Namespace Policy

From: Date: Mon, 27 Apr 2020 22:05:40 +0000
Subject: Re: [RFC] PHP Namespace Policy
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-109863@lists.php.net to get a copy of this message
On 27/04/2020 22:40, Mike Schinkel wrote:
How about a simply policy: Newer things go in, older ones stay out? Check the docs to see which is which if you are unsure, or just let your IDE auto-complete for you.
So you'd be happy with PHP\str_contains and \str_replace next to each other indefinitely? Or, more in line with your proposal, a hypothetical PHP\Iterators\FractallyAwesomeIterator next to \InifiniteIterator, \LimitIterator, etc? Or did you have some stronger definition of "newer things" in mind? I don't really see what such an arbitrary split would gain us, other than a lot of confusion. Importantly, it wouldn't be following the lead of the other languages and frameworks you mentioned, which was the specific point I was responding to. Regards, -- Rowan Tommins (né Collins) [IMSoP]

« previous php.internals (#109863) next »