+1 for a short array syntax. But only if you keep it consistent, PHP has always been using => for key/val association, I don't see any reason to suddenly provide "key": "val", unless what you want is to confuse people.
On Wed, Jun 1, 2011 at 02:42, dukeofgaming <dukeofgam...@gmail.com> wrote: > On Tue, May 31, 2011 at 7:29 PM, Dan Birken <bir...@gmail.com> wrote: > >> +1 >> >> To be honest, ['a': 'b'] or ['a' => 'b'] is so much better than array('a' >> => >> 'b') for general use I don't even care which one is picked, as long as one >> of them is picked. >> >> -Dan >> > > +1 to that too. Even when I've never liked that much "=>" and would love to > see ":" make an entrance instead . > > I'm afraid that if ":" is associated with the JSON interop argument and the > later is discarded then ":" will be discarded too, much like what happened > with the echo shortcut ("<?=") and the short tags ("<?"). Perhaps the idea > of JSON interop could be taken to another RFC and get less noise and better > ideas as a separate topic. > > Regards, > > David > -- Etienne Kneuss http://www.colder.ch -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php