Re: [RFC] Allow specifying keys in list()
| From: | S.A.N | Date: | Mon, 18 Jan 2016 14:45:33 +0000 |
| Subject: | Re: [RFC] Allow specifying keys in list() | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-90700@lists.php.net to get a copy of this message | ||
> How feasible would it be to add an exception to mixed keys? I'm thinking
> list(7 => $a, $b, $c, $d) to specify an initial offset, similar to how you
> can define an array as [7 => 0, 1, 2, 3]. This obviously goes hand in hand
> with my desire for variable keys :)
I would like it to be like, destructuring assignment, in ES6
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment