Re: Proposal: namespace the SPL
| From: | Mark Randall | Date: | Thu, 11 Feb 2021 16:57:16 +0000 |
| Subject: | Re: Proposal: namespace the SPL | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-113142@lists.php.net to get a copy of this message | ||
On 11/02/2021 16:39, Levi Morrison wrote:
Let me know what you think. I am hopeful this approach will work because: 1. It is focused on a specific area which already has an established "namespace", but in name-only (not technically). 2. It does not try to solve the larger problem, which has a lot of disagreement. 3. I will be proposing new types for ext/spl soon (Do you want a dumping ground? Because this is how you create a dumping ground :-) If we're going to start putting things into namespaces (and we should) then we should absolutely avoid repeating the mistakes of the past by dumping completely unrelated things together. If SPL\ is to exist (and personally I think SPL is so cancerous, it shouldn't) then IMO it must absolutely be SPL\iterators. Without that all we've done is swap one problem for another. The idea of putting data structures next to generic iterator helpers is, quite frankly, nuts. Mark RandallReverseIteratorand an array iterator that is more efficient than\ArrayIterator), and Tyson Andre has already proposedCachedIterableand company which is inext/spl, so this space has active development. Thank you for your time.