Re: [RFC][VOTE] Allow specifying keys in list()
| From: | Andrea Faulds | Date: | Sat, 06 Feb 2016 13:51:08 +0000 |
| Subject: | Re: [RFC][VOTE] Allow specifying keys in list() | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-91098@lists.php.net to get a copy of this message | ||
Hi Levi,
Levi Morrison wrote:
I wanted to chime in since I voted no. I'm not strongly opposed to this behavior but I do have concerns about the key behavior that was changed. In an example in the RFC:Well, this is why we have discussion periods. I brought this up before as an open issue. Nobody told me they objected to it, and everyone who did respond told me they favoured the current behaviour. I decided, therefore, that the risk of confusion was low. -- Andrea Faulds https://ajf.me/list($foo => $bar) = $array;I don't think this really makes sense.$foois being evaluated and its value is used to look up the key in$array, but$baris being assigned to even though it's a similar place as$foo. I don't think I've really expressed well what I am trying to convey but I think this RFC would be much better *without* this change, so I've voted no.