Re:C Template Library
by sgerenser on Wednesday December 30, 2020 @09:53AM
(#25582150)
I mostly agree with this comment except “dequeue” is a bad example. C++ has called this data structure “deque” (pronounced deck) since the beginning of the STL. Is there another language/library that spells it dequeue?
[ Parent
| on HN ]
Re:C Template Library
by mikepurvis on Wednesday December 30, 2020 @11:47AM
(#25583216)
For better or worse, Rust calls it a VecDeque, but I think this is meant to clarify that the structure is just Vec storage with some extra methods on top to provide convenient ring buffer usage patterns:
https://doc.rust-lang.org/std/collections/struct.VecDeque.ht...
> Is there another language/library that spells it dequeue?
Yes.
https://www.npmjs.com/package/dequeue
https://api.jquery.com/dequeue/
https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.queue-1.dequeue?view=net-5.0
Re:C Template Library
by DaiPlusPlus on Wednesday December 30, 2020 @11:07AM
(#25582820)
.NET uses Dequeue as a verb, not a noun though.
Perhaps that's another reason to call the data structure a "Deque" since "Dequeue" is already used for the verb meaning "to remove an item from a queue."