RE: [PHP-DEV] [RFC] Spread Operator in Array Expression v0.2

This is only part of a thread. view whole thread
  105088
April 5, 2019 06:08 me@jhdxr.com (=?utf-8?b?Q0hVIFpoYW93ZWk=?=)
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