Re: [PHP-DEV] Adding `final class Deque` to PHP

2021-09-21 Thread tyson andre
Hi Levi Morrison, > > "Maximum size" shouldn't be an issue for `Deque` specifically, it's a > > `size_t`. It isn't an issue for SplFixedArray and ArrayObject. > > (or for > > PHP would just encounter a fatal error due to either > > You wrote a lot, but unfortunately it was based on a misundersta

Re: [PHP-DEV] RFC: Add `final class Vector` to PHP

2021-09-21 Thread tyson andre
Hi Mike Shinkel, > >> Hmm. I must have missed that thread as I was definitely following the list > >> at that time. > >> > >> But I found the thread, which only had three (3) comments from others: > >> > >> https://externals.io/message/112639 > >> > >> From Levi Morrison it seems his objectio

Re: [PHP-DEV] Adding `final class Deque` to PHP

2021-09-21 Thread Levi Morrison via internals
> "Maximum size" shouldn't be an issue for `Deque` specifically, it's a > `size_t`. It isn't an issue for SplFixedArray and ArrayObject. > (or for > PHP would just encounter a fatal error due to either You wrote a lot, but unfortunately it was based on a misunderstanding. In some languages you ca

Re: [PHP-DEV] Adding `final class Deque` to PHP

2021-09-21 Thread tyson andre
Hi Levi Morrison, > The name "deque" is used in the standard library of these languages: > > - C++: std::deque > - Java: java.util.Deque (interface) > - Python: collections.deque > - Swift: Collections.Deque (not standard lib, apparently, but Apple > official? Don't know Swift) > - Rust: std

Re: [PHP-DEV] Adding `final class Deque` to PHP

2021-09-21 Thread Levi Morrison via internals
The name "deque" is used in the standard library of these languages: - C++: std::deque - Java: java.util.Deque (interface) - Python: collections.deque - Swift: Collections.Deque (not standard lib, apparently, but Apple official? Don't know Swift) - Rust: std::collections::VecDeque And these

Re: [PHP-DEV] Adding `final class Deque` to PHP

2021-09-21 Thread Mike Schinkel
> On Sep 21, 2021, at 1:12 PM, Pierre Joye wrote: > On Tue, Sep 21, 2021, 11:56 PM Mike Schinkel > wrote: > > On Sep 21, 2021, at 3:45 AM, Pierre Joye > > wrote: > > > > On Tue, Sep 21, 2021 at 11:21 AM Mike Schinkel >

Re: [PHP-DEV] RFC: Add `final class Vector` to PHP

2021-09-21 Thread Mike Schinkel
> On Sep 19, 2021, at 8:55 AM, tyson andre wrote: > > Hi Mike Schinkel, >> >> Hmm. I must have missed that thread as I was definitely following the list >> at that time. >> >> But I found the thread, which only had three (3) comments from others: >> >> https://externals.io/message/112639 >>

Re: [PHP-DEV] Adding `final class Deque` to PHP

2021-09-21 Thread Pierre Joye
On Tue, Sep 21, 2021, 11:56 PM Mike Schinkel wrote: > > On Sep 21, 2021, at 3:45 AM, Pierre Joye wrote: > > > > On Tue, Sep 21, 2021 at 11:21 AM Mike Schinkel > wrote: > > > >> Honestly, at first I confused `Deque` with `Dequeue` and was wondering > why we would name a class with a verb? It wa

Re: [PHP-DEV] Adding `final class Deque` to PHP

2021-09-21 Thread Mike Schinkel
> On Sep 21, 2021, at 3:45 AM, Pierre Joye wrote: > > On Tue, Sep 21, 2021 at 11:21 AM Mike Schinkel 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 a

Re: [PHP-DEV] Adding `final class Deque` to PHP

2021-09-21 Thread 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 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