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.
[ Parent
| on HN ]
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.