Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116114 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 22439 invoked from network); 21 Sep 2021 07:05:05 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Sep 2021 07:05:05 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C3A71180002 for ; Tue, 21 Sep 2021 00:45:58 -0700 (PDT) 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.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) (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, 21 Sep 2021 00:45:58 -0700 (PDT) Received: by mail-ot1-f53.google.com with SMTP id c8-20020a9d6c88000000b00517cd06302dso27153776otr.13 for ; Tue, 21 Sep 2021 00:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=SZN+eJEH7XPSehQgU99WeyPzUp02CS+0Lqwnu5HTZvI=; b=LhIThC+mBGyfgFBYOqbEaAHjShq7//2ZEqkeZn51TbjbFCp7D8nKUmSyzgecc/G/c4 KbK7IOtVBUDVJvYSZ0+8m8YhOh8sLA7+eK7vBkEEqkU2pFhNBp6rXbuPOuPbk21y/ww1 c1Rk/AsHpW5PddI0Bs7T6z5mYXx8gt79d1h3lroYCQ8cUzXbbPsT/L82YDhT/NQs9GW4 D0GipfmGOneelMcnnv2hHHRWplx42ATGe7ovCHJqBP0XTSik7pkocQzyMEutvjN1X9Nh CCc7bijhxtHexLBLsRI4AwBzaacbhtR14uhpB/9z1WJGFarwnLnResGKZzFwXJPBOwCi 3tPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=SZN+eJEH7XPSehQgU99WeyPzUp02CS+0Lqwnu5HTZvI=; b=OWDMXu/ZyTd+dkMp1LeeBqvQYKF13kgloK4kT2+i5N9yJCNwKxeVlov5N6UCoae5xw Aq7FV7zBMBQZSP/GioQk5eDkjE6p/K90uqdU/ln4Dh29jNMNSXN4nnyorjpMIm+ou6Ox Jo8BPH18cl4DZ5m04+VgPrH5ZNyCZAbkdbCcK4OEK3QP+33oht720IOoy7CwD8AhaI2K sSP3sGoBuEujekeaSYbM4pFiCI5kBM16HHrDE7jFl0CUPvyYakMBCErkMbBkP8YnMt4I im0eKa8RseJQ4F1jzqsrfpUykfYncMAme8kOLEExUMpmegAHywi4MMj+77zCOcap75ya sRtQ== X-Gm-Message-State: AOAM532KfdpZVDCuazvo5Iwd9UKmVNAe/izYuXilMVQy3M/BT03VOkXH uTQyx7m56Jo6m1wHyflcQyh1a32tGPWJd2/nbYY= X-Google-Smtp-Source: ABdhPJwRFF19uXZvcaOZlTLv0pGmw5/iX7sBO0W2KlG2NrYn6IGTBaUdXCB6K0L9fW8qdDWYHFt99UZlByqhkJ6lsUA= X-Received: by 2002:a05:6830:30bd:: with SMTP id g29mr17357611ots.69.1632210355231; Tue, 21 Sep 2021 00:45:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 21 Sep 2021 14:45:44 +0700 Message-ID: To: Mike Schinkel Cc: tyson andre , "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Adding `final class Deque` to PHP From: pierre.php@gmail.com (Pierre Joye) On Tue, Sep 21, 2021 at 11:21 AM Mike Schinkel wrote: > Honestly, at first I confused `Deque` with `Dequeue` and was wondering wh= y we would name a class with a verb? It wasn't until Rowan's comment that = I realized `Deque` is an abbreviation. > > Which begs the question: how many other PHP developers will know computer= science terms like this well enough to know `Deque` is a noun when they se= e it, and more importantly how many PHP developers will think to search for= `Deque` when they need a queue? Unlike the Vector name which is really confusing as it is not a vector, Deque is actually relatively known for anyone needing a double ended queue. It even comes first in google search, wikipedia or java implementations, which matches this implementation. We expect our users to know all weird names of different patterns, I trust them to be able to learn what a Deque is. :) best, --=20 Pierre @pierrejoye | http://www.libgd.org