Hi Stephen, > As a userland dev & library author it’s nice to see some progression on basic > data structures, so thank you for your efforts on this! > > > Two little things in the RFC: > > The proposed API switches between terms `front`, `back`, `start` and `end` in > comments - is there meant to be a conceptual difference between front/start > and end/back ? Good point. I've changed the method names to first()/last() and also made the wording in https://wiki.php.net/rfc/deque more consistently use first/last to avoid confusion.
No, They're the same. front=start=bottom=first. Bottom was from SplDoublyLinkedList/SplStack, e.g. the bottom of the stack, top is where `push()` acts, etc. Front was how I was referring to iteration order. > In the "Why use this instead of array?” Section, the 3rd point seems cut off: > > Note that starting in php 8.2, array That should say "Note that starting in php 8.2, arrays that are lists (with no/few gaps) are represented in a more memory efficient way than associative arrays.". I've updated the RFC. Thanks, Tyson -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php