Re:Short array syntax finally in PHP 5.4
by ck2 on Sunday July 24, 2011 @11:24AM
(#2799538)
But PHP isn't a transmitted language like javascript, why even bother? It will only make the parser slower?
[ Parent
| on HN ]
They're trying to be nicer to the humans. (Though IMO, any human who wanted to be kind to himself would just not use PHP to begin wtih.)
Right now those humans would not choose to start a project in php, but a few years ago there were not too much alternatives. It's not for nothing that the world's second biggest website is written in php.
Do you mean Facebook? They only use PHP for templating and legacy purposes, as far as I understand. Much of their newer code is written in a variety of languages, including C++, Python and Erlang.
Re:Short array syntax finally in PHP 5.4
by bluekeybox on Sunday July 24, 2011 @04:29PM
(#2800264)
In the immortal words, I am not even able rightly to apprehend the kind of confusion of ideas that could provoke a question like that.
Slower parsing, really? Is that what you are worrying about?
Re:Short array syntax finally in PHP 5.4
by swivelmaster on Sunday July 24, 2011 @04:12PM
(#2800227)
Any site that needs real speed will be using APC or eAccelerator anyway, so that's not really relevant.