Re: Adding `final class Deque` to PHP
| From: | Mel Dafert | Date: | Tue, 01 Feb 2022 17:07:16 +0000 |
| Subject: | Re: Adding `final class Deque` to PHP | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-116968@lists.php.net to get a copy of this message | ||
On 1 February 2022 17:06:59 CET, Stephen Reay <php-lists@koalephant.com> wrote:
>
>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 ?
On a similar note, why are the methods for getting the first/last value called
top()/bottom()? Off the top of my head, it is hard for me to imagine which
side is
the top and which side is the bottom.
I would prefer if it was called something more intuitive, possibly
first()/last() in
accordance with array_key_first()/array_key_last().
Regards,
Mel