On 11/02/2021 16:39, Levi Morrison wrote:
  2. Any new types going into `ext/spl` use the `Spl` namespace. New
types added to `ext/spl` should be either related to data structures
or iterators, which is the bulk of what the SPL is.
      a. This rule is to help prevent the SPL from becoming the dumping
grounds for new types.


I think having this rule mentioned and agreed somewhere at least is a good idea.

We could perhaps in future look at moving those parts currently labelled as "spl" which *don't* fall into those categories somewhere else. It's weird that you can now _only_ use autoloading via a function prefixed "spl_", even though it's a language feature.

Regards,

--
Rowan Tommins
[IMSoP]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to