News for hackers. Stuff that matters.
Re:PHP Annotations Are a Horrible Idea by astrodust on Wednesday October 17, 2012 @11:26AM (#4664842)
A lot of this boils down to PHP's feeble "array" declarator. Take a page from JavaScript and make it easy.
Re:PHP Annotations Are a Horrible Idea by mark_story on Wednesday October 17, 2012 @01:08PM (#4665414)
As of PHP 5.4 you can use [] to define arrays. It saves some typing, and is less noisy on the eyes I guess.
Re:PHP Annotations Are a Horrible Idea by astrodust on Wednesday October 17, 2012 @01:41PM (#4665612)
That's exactly the way it should be. Hopefully this will become the standard before long.