Holly crap, god save us from that. +1 on short syntax (personally I try to avoid it in JS too - I use new Array() or JSON), but no : please. It's just ridiculous for PHP.
2011/6/1 Patrick ALLAERT <patrick.alla...@gmail.com>: > 2011/5/31 Brian Moon <br...@moonspot.net>: >> https://wiki.php.net/rfc/shortsyntaxforarrays >> >> Since this was brought again recently by Rasmus >> (http://markmail.org/message/fx3brcm4ekh645se) and on Twitter where several >> people including Andi chimed in on it and Ilia seemed to reverse his >> thoughts as well (with caveats), I thought I would start a real thread about >> it. The reason the RFC stalled was stated as: >> >> "This patch will not be accepted because slight majority of the core >> developers voted against. Though if you take a accumulated mean between core >> developers and userland votes seems to show the opposite it would be >> irresponsible to submit a patch witch is not supported or maintained in the >> long run." >> >> So, the PHP users want it, but too many PHP core devs did not want it or did >> not see the use of it. From rereading the mailing list archive, most had the >> tone of "I don't see a reason for it." I was in that camp in 2003 when it >> first came up. However, with the emergence of JSON and systems that use JSON >> as an interface, this type of syntax would be most welcome in the day to day >> life of a PHP developer. >> >> I would prefer (as Rasmus pointed out) not to start a long discussion about >> it. Primarily I would be curious if anyone on the lists (from the RFC wiki >> page) below would like to change your vote or if you are not listed below >> and would like to be counted, that would be great too. >> >> PHP SVN account holder voters >> ============================= >> Pro: Andrei Zmievski, Andi Gutmans, Pierre Joye, Rasmus Lerdorf, Stanislav >> Malyshev, Brian Moon, Kalle Sommer Nielsen, Edin Kadribasic >> >> Contra: Antony Dovgal, Derick Rethans, Jani Taskinen, Lokrain, Felipe Pena, >> Lukas Kahwe Smith, Marcus Boerger, David Soria Parra, Johannes Schlüter, >> Maciek Sokolewicz, Philip Olson, Ilia Alshanetsky, Daniel Brown, Jochem >> Maas, Hannes Magnusson, David Coallier >> >> >> Other voters >> ============ >> Pro: Sebastian Deutsch, Ryusuke Sekiyama, Stefan Marr, Alexey Zakhlestin, >> Carl P. Corliss, Darius Jahandarie, Giedrius D, Eric Coleman, Max Antonov, >> Mike Ford, Larry Garfield, Sam Barrow, Taylor Luk, Hans Ahlin, Karoly >> Negyesi, Guilherme Blanco, Jonathan-Bond Caron >> >> Contra: Geoffrey Sneddon, Tomi Kaistila, David Zühlke >> >> >> -- >> Brian. >> http://brian.moonspot.net >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php > > @Zend > > Suggestion for the Zend PHP 5.4 Certification: > Which of the following constructs are valid: > $array = [3 => [42], 'foo': array( 'orange' => 'juice'), 'bar' => 'apple']; > $array = [3 => [42], 'foo': array( 'orange' : 'juice'), 'bar' : 'apple']; > $array = [[3] => 42, 'foo': array( 'orange' => 'juice'), 'bar' => 'apple']; > {$array = [3 => [42], 'foo': array( 'orange' => 'juice'), 'bar' => 'apple'];} > > :) > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php