News for hackers. Stuff that matters.
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?
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...

Re:C Template Library by chapium on Wednesday December 30, 2020 @03:55PM (#25585985)
Re:C Template Library by IncRnd on Wednesday December 30, 2020 @10:18AM (#25582354)
> 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.
Re:C Template Library by sgerenser on Wednesday December 30, 2020 @03:42PM (#25585846)
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."
Re:C Template Library by IncRnd on Friday January 01, 2021 @04:48PM (#25607540)
It's also for a completely different purpose, but I was answering about the spelling as a direct answer to a question.