Re: [RFC] Allow specifying keys in list()
| From: | Stanislav Malyshev | Date: | Thu, 21 Jan 2016 07:06:35 +0000 |
| Subject: | Re: [RFC] Allow specifying keys in list() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-90775@lists.php.net to get a copy of this message | ||
Hi!
> Here's an RFC that would extend the syntax of list() to be more useful
> with associative arrays:
>
> https://wiki.php.net/rfc/list_keys
>
> Please read it and tell me your thoughts.
After reading the RFC, it looks like a great idea. I wouldn't exactly
encourage this for replacement of named parameters (for one, I
understand it would produce some complaints - like notice? - if the key
does not exist) but there are cases when it's useful and I don't see any
harm in it.
--
Stas Malyshev
smalyshev@gmail.com