Re: RFC: Add `final class Vector` to PHP
| From: | Pierre Joye | Date: | Sat, 18 Sep 2021 03:39:57 +0000 |
| Subject: | Re: RFC: Add `final class Vector` to PHP | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-116084@lists.php.net to get a copy of this message | ||
Hi Tyson,
On Sat, Sep 18, 2021, 10:21 AM tyson andre <tysonandre775@hotmail.com>
wrote:
>
> This proposal already has a fixed-sized type - that type is
>
mixed (or
> zval internally), like ArrayObject, WeakMap, etc. already have
> in their
> values.
> (Similar to how basic Java collections (e.g. ArrayList<String>) are all
> collections of Object after generic type erasure.)
>
Thanks for the clarification.
So the name of this proposal is misleading. They are not vector.
I am not sure php needs another type of fixed array at this stage. So -1
here overall.
best,
Pierre
>