News for hackers. Stuff that matters.
Re:PHP 5.5.0 Alpha 6 - Released by krapp on Friday March 08, 2013 @06:59PM (#5346577)
If for no other reason than ':' is easier to type than '=>'?
Re:PHP 5.5.0 Alpha 6 - Released by BystanderX on Friday March 08, 2013 @07:29PM (#5346694)
Hell will surely descend upon me, but I'd vote for having it be syntactic sugar for => in general.
Re:PHP 5.5.0 Alpha 6 - Released by krapp on Friday March 08, 2013 @08:53PM (#5346921)
You can already use the js-style shorthand inside of Twig templates, and I've been caught absentmindedly forgetting to switch to the 'proper' way for raw php now and then. And I would like to never need to even touch the shift key when having to write out an array or an object but even JSON won't let you do that. It's a step in the right direction, though.