3 ms·
If for no other reason than ':' is easier to type than '=>'?
by krapp 14y ago
If for no other reason than ':' is easier to type than '=>'?
- BystanderX 14y agoHell will surely descend upon me, but I'd vote for having it be syntactic sugar for => in general.
- krapp 14y agoYou 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.