Hi Tyson,

On Sat, Sep 18, 2021, 10:46 PM tyson andre <tysonandre...@hotmail.com>
wrote:

> Hi Peter Bowyer,
>
>
> Many of php's names are based on the naming choices in libraries made in
> C/C++.
> So using https://cplusplus.com/reference/vector/vector/ for my RFC
> https://wiki.php.net/rfc/vector
> seems like the most natural naming choice,
> and would make it easier for people with backgrounds in that family of
> languages to find the functionality they're looking for.
>

I do and as mentioned before it makes it confusing and harder because of
the use of zval and not specific type like in c++.  A zval is not a php
userland type.

C++ initialized a vector using the type:

vector <int> myvalues;


then all elements must be of type int.

This proposal breaks this already.

I expect having a second `Stack` would be confusing and make it hard to
> remember which is the efficient one.
> (Especially since stacks typically don't include specialized resizing
> methods)
>

Yes, as it isn't a stack either ;)

I have no idea how you could name, sorry,  but definitely not a vector.



> Also, your comment is ambiguous. Are you saying that you personally object
> to the name,
> or that you're fine with the name but think that the comments by
> Larry/Chris/Pierre in this email thread are representative of voters.
>


Maybe representative of what vectors are and how they are used.

Vectorization is a key to programming now like multi threading or
parraelism a few years back. Vectorization is an old principles as
processors gain in power in the last year, this the way raw performance
scale even more with adding more cores.

Now, having a fixed array named Vector in php would be a big mistake and
actually very confusing.

best,
Pierre

>

Reply via email to