Re:Short array syntax finally in PHP 5.4
by robryan on Sunday July 24, 2011 @11:49AM
(#2799590)
Hard to say that it is simple unless you know the internals.
[ Parent
| on HN ]
2 lines in the parser: http://svn.php.net/viewvc/php/php-src/trunk/Zend/zend_langua...
The RFC (https://wiki.php.net/rfc/shortsyntaxforarrays) was actually rejected by the developers, I think it's only really been put in to appease large userland pressure. Find it rather amusing that a 2 change to the parser for an alias would be rejected on 'maintainability' grounds.
The voting results on the RFC page is from 2008 when it was rejected. The recent vote that decided its inclusion was here: https://wiki.php.net/todo/php54/vote. I think it had pretty solid support from core developers as well as userland people this time around.
And why should everyone know or care about language internals?
Re:Short array syntax finally in PHP 5.4
by JeremyBanks on Sunday July 24, 2011 @12:06PM
(#2799637)
If someone is making a statement about how "simple" something is to implement, they should know what they're talking about, no?