Re: [VOTE] Fix list() behavior inconsistency
| From: | Leigh | Date: | Fri, 26 Sep 2014 07:08:51 +0000 |
| Subject: | Re: [VOTE] Fix list() behavior inconsistency | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-77646@lists.php.net to get a copy of this message | ||
On 26 September 2014 08:01, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
>
> It's as odd as [] working with strings but -> not. Those are different
> things, so they work differently.
Sorry, this was kind of my point, I probably just phrased it badly.
The array_* "question" was meant to be rhetorical.
My points are:
* Strings are _not_ treated as arrays of bytes everywhere.
* If we intend to give strings more array-like support after this RFC
(like foreach($string as $char), making array_* work with strings),
then I support the list() change.
* Otherwise not