Re: Fwd: [PHP-DEV] clarify the destructuring list() concept

2024-01-06 Thread Larry Garfield
On Fri, Jan 5, 2024, at 6:22 PM, Mönôme Epson wrote: > Thank you for your reply. Forgive me for a few mistakes. I'm new to > Gmail... Is this line "top-post" ? Yes. Top posting means putting your reply above what people have sent previously. On many mailing lists, including this one, that is di

Re: Fwd: [PHP-DEV] clarify the destructuring list() concept

2024-01-06 Thread Rowan Tommins
On 5 January 2024 23:16:58 GMT, "Mönôme Epson" wrote: >I try to follow the procedure of: https://wiki.php.net/rfc/howto Then I suggest you take a moment to think about what you're proposing to change, and write it out clearly, as in "I propose to make this code ... do this ... instead of this

Re: Fwd: [PHP-DEV] clarify the destructuring list() concept

2024-01-05 Thread Mönôme Epson
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 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

Re: Fwd: [PHP-DEV] clarify the destructuring list() concept

2024-01-05 Thread Larry Garfield
On Fri, Jan 5, 2024, at 5:16 PM, Mönôme Epson wrote: > -- Forwarded message - > I try to follow the procedure of: https://wiki.php.net/rfc/howto > > It seems to me that list() is not clearly specified. > I wanted to know your opinions on this. > > > For example : > $key = "a"; > $v

Fwd: [PHP-DEV] clarify the destructuring list() concept

2024-01-05 Thread Mönôme Epson
-- Forwarded message - De : Mönôme Epson Date: sam. 6 janv. 2024 à 00:15 Subject: Re: [PHP-DEV] clarify the destructuring list() concept To: Rowan Tommins Le ven. 5 janv. 2024 à 23:31, Rowan Tommins a écrit : > > I'm not sure what your question is I try to

Re: [PHP-DEV] clarify the destructuring list() concept

2024-01-05 Thread Rowan Tommins
On 5 January 2024 20:44:00 GMT, "Mönôme Epson" wrote: >Hello internals, > >> The purpose of list() is to assign a list of variables. > >What should be the underlying concept behind the list() language construct? > >I propose that list() is the reciprocal of array(). >That is, if array() is a funct

[PHP-DEV] clarify the destructuring list() concept

2024-01-05 Thread Mönôme Epson
Hello internals, > The purpose of list() is to assign a list of variables. What should be the underlying concept behind the list() language construct? I propose that list() is the reciprocal of array(). That is, if array() is a function call, then list() is the signature of a function. Do you a