News for hackers. Stuff that matters.
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?
Re:Short array syntax finally in PHP 5.4 by jey on Sunday July 24, 2011 @11:47AM (#2799583)
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.)
Re:Short array syntax finally in PHP 5.4 by ma2rten on Sunday July 24, 2011 @01:08PM (#2799778)
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.
Re:Short array syntax finally in PHP 5.4 by code_duck on Monday July 25, 2011 @12:47AM (#2801385)
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.
Re:Short array syntax finally in PHP 5.4 by vmind on Sunday July 24, 2011 @12:14PM (#2799654)
It's just an additional alias in the grammar, no real measurable slow down given the size of the parser as is.