Re: Fwd: [PHP-DEV] clarify the destructuring list() concept
| From: | Mönôme Epson | Date: | Sat, 06 Jan 2024 00:22:54 +0000 |
| Subject: | Re: Fwd: [PHP-DEV] clarify the destructuring list() concept | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-122130@lists.php.net to get a copy of this message | ||
Thank you for your reply. Forgive me for a few mistakes. I'm new to
Gmail... Is this line "top-post" ?
Le sam. 6 janv. 2024 à 00:48, Larry Garfield <larry@garfieldtech.com> a
écrit :
> What you can do, as Rowan noted, is this:
>
> https://3v4l.org/cEmcC
>
> I understood your code. It is interesting when you do not know the order
of the keys.
https://3v4l.org/O29NL
I would have preferred to be able to write:
https://3v4l.org/o5jkH
In the same way I do it here:
https://3v4l.org/I4V3W
I don't see any concrete case where using a variable as a key can be useful
https://3v4l.org/WR54k
For me it was implemented like this, because it's easier.
In reality, I'm not asking "how" it actually works, but how it should work.