Re: RFC proposal for alternative list syntax

From: Date: Sun, 27 Dec 2015 22:34:51 +0000
Subject: Re: RFC proposal for alternative list syntax
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-89900@lists.php.net to get a copy of this message
Am 27.12.2015 9:00 nachm. schrieb "Julian Rhind" <julianrhind@outlook.com>: > > 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 > > Julian > > Julian Rhind > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http:// > <http://www.php.net/unsub.php>www.php.net <http://www.php.net/unsub.php>/ <http://www.php.net/unsub.php>unsub.php <http://www.php.net/unsub.php> > It looks nice. I like it

« previous php.internals (#89900) next »