Re: [PHP-DEV] RFC proposal for alternative list syntax

2015-12-27 Thread Kris Craig
On Dec 27, 2015 7:56 PM, "Pierre Joye" wrote: > > On Mon, Dec 28, 2015 at 6:20 AM, Stanislav Malyshev wrote: > > Hi! > > > >> // With the new array syntax this has been improved to > >> > >> list ($a, $b) = [1, 2]; > >> > >> // I think this new syntax should logically extend to > >> > >> [$a, $b]

Re: [PHP-DEV] RFC proposal for alternative list syntax

2015-12-27 Thread Pierre Joye
On Mon, Dec 28, 2015 at 6:20 AM, Stanislav Malyshev wrote: > Hi! > >> // With the new array syntax this has been improved to >> >> list ($a, $b) = [1, 2]; >> >> // I think this new syntax should logically extend to >> >> [$a, $b] = [1, 2]; > > list() and array() are two different language construc

Re: [PHP-DEV] RFC proposal for alternative list syntax

2015-12-27 Thread S.A.N
It looks like, destructuring assignment, in ES6 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment I like! ) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

AW: [PHP-DEV] RFC proposal for alternative list syntax

2015-12-27 Thread Robert Stoll
Hi, > -Ursprüngliche Nachricht- > Von: Stanislav Malyshev [mailto:smalys...@gmail.com] > Gesendet: Montag, 28. Dezember 2015 00:21 > An: Julian Rhind; internals@lists.php.net > Betreff: Re: [PHP-DEV] RFC proposal for alternative list syntax > > Hi! > > > // With the new array syntax this

Re: [PHP-DEV] RFC proposal for alternative list syntax

2015-12-27 Thread Alain Williams
On Sun, Dec 27, 2015 at 03:20:40PM -0800, Stanislav Malyshev wrote: > Hi! > > > // With the new array syntax this has been improved to > > > > list ($a, $b) = [1, 2]; > > > > // I think this new syntax should logically extend to > > > > [$a, $b] = [1, 2]; > > list() and array() are two diff

Re: [PHP-DEV] RFC proposal for alternative list syntax

2015-12-27 Thread Stanislav Malyshev
Hi! > // With the new array syntax this has been improved to > > list ($a, $b) = [1, 2]; > > // I think this new syntax should logically extend to > > [$a, $b] = [1, 2]; list() and array() are two different language constructs, using the same syntax for them is a bad idea. -- Stas Malyshe

Re: [PHP-DEV] RFC proposal for alternative list syntax

2015-12-27 Thread Martin Keckeis
Am 27.12.2015 9:00 nachm. schrieb "Julian Rhind" : > > Hi > > I have a proposal for new alternative syntax for list > > // In the old days we did this > > list ($a, $b) = array (1, 2); > > // With the new array syntax this has been improved to > > list ($a, $b) = [1, 2]; > > // I think this new syn

[PHP-DEV] RFC proposal for alternative list syntax

2015-12-27 Thread Julian Rhind
Hi   I have a proposal for new alternative syntax for list   // In the old days we did this   list ($a, $b) = array (1, 2);   // With the new array syntax this has been improved to   list ($a, $b) = [1, 2];   // I think this new syntax should logically extend to   [$a, $b] = [1, 2];   Regards   Jul

[PHP-DEV] Wiki access

2015-12-27 Thread Guy Sheffer
Hey all, I wanted to get wiki access to update the IRC channel here: https://wiki.php.net/internals/windows From: #php-dev-win to: #winphp-dev which is the right one to go to. I've been the windows integration engineer Zend for little more than a year and this is where we did our coordination.