Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52654 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71223 invoked from network); 1 Jun 2011 11:35:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2011 11:35:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:53431] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/B1-61684-80426ED4 for ; Wed, 01 Jun 2011 07:35:36 -0400 Received: from localhost (xdebug.org [127.0.0.1]) by xdebug.org (Postfix) with ESMTPS id 91ACCDE142; Wed, 1 Jun 2011 12:35:33 +0100 (BST) Date: Wed, 1 Jun 2011 12:35:33 +0100 (BST) X-X-Sender: derick@whisky To: Etienne Kneuss cc: "internals@lists.php.net" In-Reply-To: Message-ID: References: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Re: RFC: Short syntax for Arrays (redux) From: derick@php.net (Derick Rethans) 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