RE : [PHP-DEV] RFC proposal: Spread Operator for Array Destructuring Assignment

2020-06-04 Thread paul laffitte
hp.net<mailto:internals@lists.php.net> Objet :Re: [PHP-DEV] RFC proposal: Spread Operator for Array Destructuring Assignment Le Wed, 3 Jun 2020 11:46:00 +0200, Nikita Popov a écrit : > To give a tl;dr of existing discussions on the topic: > > $foobar = [2 => 2, 1 => 1, 0

Re: [PHP-DEV] RFC proposal: Spread Operator for Array Destructuring Assignment

2020-06-03 Thread Nikita Popov
On Wed, Jun 3, 2020 at 12:02 PM Côme Chilliet < come.chill...@fusiondirectory.org> wrote: > Le Wed, 3 Jun 2020 11:46:00 +0200, > Nikita Popov a écrit : > > To give a tl;dr of existing discussions on the topic: > > > > $foobar = [2 => 2, 1 => 1, 0 => 0]; > > [$foo, ...$bar] = $foobar; > >

Re: [PHP-DEV] RFC proposal: Spread Operator for Array Destructuring Assignment

2020-06-03 Thread Côme Chilliet
Le Wed, 3 Jun 2020 11:46:00 +0200, Nikita Popov a écrit : > To give a tl;dr of existing discussions on the topic: > > $foobar = [2 => 2, 1 => 1, 0 => 0]; > [$foo, ...$bar] = $foobar; > // What is the result? > > Introducing this feature is primarily a matter of coming up with a > sat

Re: [PHP-DEV] RFC proposal: Spread Operator for Array Destructuring Assignment

2020-06-03 Thread Nikita Popov
On Wed, Jun 3, 2020 at 11:37 AM paul laffitte wrote: > Hello, > > I would like to submit an RFC proposal about array destructuring > assignment. An RFC has already been implemented in php 7.1 about this ( > https://wiki.php.net/rfc/short_list_syntax), but I feel like something is > missing for th

[PHP-DEV] RFC proposal: Spread Operator for Array Destructuring Assignment

2020-06-03 Thread paul laffitte
Hello, I would like to submit an RFC proposal about array destructuring assignment. An RFC has already been implemented in php 7.1 about this (https://wiki.php.net/rfc/short_list_syntax), but I feel like something is missing for this one. Indeed, another RFC about "Spread Operator in Array Exp