RE: [PHP-DEV] [RFC] Spread Operator in Array Expression v0.2
| From: | CHU Zhaowei | Date: | Fri, 05 Apr 2019 06:08:58 +0000 |
| Subject: | RE: [PHP-DEV] [RFC] Spread Operator in Array Expression v0.2 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-105088@lists.php.net to get a copy of this message | ||
A recoverable error will be thrown once a string key is encountered. Thanks for raising this
question, and I've updated the RFC accordingly.
-----Original Message-----
From: Stephen Reay <php-lists@koalephant.com>
Sent: Friday, April 5, 2019 12:40 AM
To: CHU Zhaowei <me@jhdxr.com>
Cc: PHP internals <internals@lists.php.net>
Subject: Re: [PHP-DEV] [RFC] Spread Operator in Array Expression v0.2
> On 4 Apr 2019, at 21:14, CHU Zhaowei <me@jhdxr.com> wrote:
>
> Hi internals,
>
> Thanks for the people who joined the discussion of my [RFC: Spread Operator in Array
> Expression](https://wiki.php.net/rfc/spread_operator_for_array). The biggest change is I have
> dropped the support for string keys in v0.2 as suggested by Côme, to make the behavior of spread
> operator consistent. I have also added Q&A to explain the questions I received.
>
> Thanks & best regards,
> CHU Zhaowei
>
>
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List To unsubscribe,
> visit: http://www.php.net/unsub.php
>
Can you clarify what “not supported” means in reference to string keys? What will happen if an
array with string keys is used? Does it error/warn, and/or are the keys ignored or skipped?
--
PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php