Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116968 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 75284 invoked from network); 1 Feb 2022 15:53:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 1 Feb 2022 15:53:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B5FF31804DF for ; Tue, 1 Feb 2022 09:07:19 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8412 83.65.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from mail02.x-net.at (mail02.x-net.at [83.65.141.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 1 Feb 2022 09:07:18 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail02.x-net.at (Postfix) with ESMTP id D9669380098; Tue, 1 Feb 2022 18:07:16 +0100 (CET) Received: from mail02.x-net.at ([127.0.0.1]) by localhost (mail02.x-net.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id VrLxZwQBhhSA; Tue, 1 Feb 2022 18:07:16 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail02.x-net.at (Postfix) with ESMTP id 839BE38040D; Tue, 1 Feb 2022 18:07:16 +0100 (CET) X-Virus-Scanned: amavisd-new at x-t.at Received: from mail02.x-net.at ([127.0.0.1]) by localhost (mail02.x-net.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id o07uxwYqOH23; Tue, 1 Feb 2022 18:07:16 +0100 (CET) Received: from [127.0.0.1] (77.119.203.118.wireless.dyn.drei.com [77.119.203.118]) by mail02.x-net.at (Postfix) with ESMTPSA id 33224380098; Tue, 1 Feb 2022 18:07:16 +0100 (CET) Date: Tue, 01 Feb 2022 18:07:16 +0100 To: internals@lists.php.net, Stephen Reay , tyson andre User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Adding `final class Deque` to PHP From: mel@dafert.at (Mel Dafert) On 1 February 2022 17:06:59 CET, Stephen Reay = 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 ca= lled `top()`/`bottom()`? Off the top of my head, it is hard for me to imagine w= hich side is the top and which side is the bottom=2E I would prefer if it was called something more intuitive, possibly `first(= )`/`last()` in accordance with `array_key_first()`/`array_key_last()`=2E Regards, Mel