Re: Adding `final class Deque` to PHP

From: Date: Tue, 21 Sep 2021 07:45:44 +0000
Subject: Re: Adding `final class Deque` to PHP
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-116114@lists.php.net to get a copy of this message
On Tue, Sep 21, 2021 at 11:21 AM Mike Schinkel <mike@newclarity.net> wrote: > Honestly, at first I confused Deque with > Dequeue and was wondering why 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 see 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, -- Pierre @pierrejoye | http://www.libgd.org

« previous php.internals (#116114) next »