On Wed, Apr 22, 2020 at 11:03 PM Matthew Brown <[email protected]> wrote: > > > This is the *design* process for a language, and it's important... > Stepping back to reconsider how collections work generally, and how we can > improve them in a graceful way that leads to a clean end-state, would be > very valuable. > > Though you have much more experience with internals than I do, I think that > building a consensus around a bold new vision for PHP collections would be > a near-Sisyphean task. > > Adding a list/vector type would be a much smaller, more easily definable > task – it was one of the first new types that Hack added, and by all > accounts they're pretty happy with that decision.
IIRC, they switched from object semantics to value semantics (like PHP arrays). Can someone more knowledgeable confirm? > > > Should we also be adding a dedicated dictionary type as well? > > Maybe? I think there'd be less to gain from a performance standpoint > though, so I didn't want to lump that in with any list proposal and risk > derailment. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
