Re: Re: RFC: Short syntax for Arrays (redux)

From: Date: Wed, 01 Jun 2011 02:39:09 +0000
Subject: Re: Re: RFC: Short syntax for Arrays (redux)
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-52619@lists.php.net to get a copy of this message
On 1 June 2011 08:57, Etienne Kneuss <colder@php.net> wrote: > +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. Agreed here: +1 for short array syntax using =>; -0 for short array syntax using colons. PHP isn't JSON, and I'd rather be consistent with previous PHP syntax, given the choice. Adam

« previous php.internals (#52619) next »