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

From: Date: Wed, 01 Jun 2011 11:35:33 +0000
Subject: Re: Re: RFC: Short syntax for Arrays (redux)
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Wed, 1 Jun 2011, Etienne Kneuss wrote:

> +1 for a short array syntax.

I'm still -1 on it. It makes absolutely unreadable code (yes, also in 
JavaScript with f.e. MongoDB).

> 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.

Yes, definitely "=>" vs. ":" in any case.

cheers,
Derick

-- 
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug


Thread (24 messages)

« previous php.internals (#52654) next »