Re: [RFC] Allow specifying keys in list()
| From: | Andrea Faulds | Date: | Tue, 19 Jan 2016 18:04:01 +0000 |
| Subject: | Re: [RFC] Allow specifying keys in list() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-90718@lists.php.net to get a copy of this message | ||
Hi again,
I've updated the RFC to v1.1, because I've resolved the open issue of whether to allow arbitrary expressions for keys. It seems that the risk of confusion was less than I thought it was, and allowing anything not only simplifies implementation, but means you can do things like have object keys (when working with SplObjectStorage, for example).
You may wish to look over the RFC again: https://wiki.php.net/rfc/list_keys
Thanks.
--
Andrea Faulds
https://ajf.me/