The word “dequeue” is already widely used as a verb meaning “remove from a queue”. At first glance when reading the docs, I assumed that was what was meant here and got confused (especially since it’s only referenced as “dequeue” and not mentioned as "double-ended queue”), and it took me a few good minutes to realize that it’s an abbreviation.
C++’s deque has a similar issue, but at least it’s visually distinct from dequeue. In Zig’s case, the type is referred to as Dequeue, which makes it harder to parse at first sight.
I personally think we should avoid the abbreviation altogether and just call it what it is: DoubleEndedPriorityQueue.
yes, I don’t really understand why it is needed, but I do find it better than Dequeue since that already a word and a lot more confusing
and if we do go with Dequeue according to the zig reference it should be actually be spelled DeQueue
I think deque is good, it’s a really common term that several languages use (for those who aren’t aware of them previously, they’re often pronounced like “deck” and is indeed as previously mentioned is short for “double ended queue”)