Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52593 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10456 invoked from network); 31 May 2011 21:52:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2011 21:52:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=michael@no-surprises.co.uk; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=michael@no-surprises.co.uk; sender-id=pass Received-SPF: pass (pb1.pair.com: domain no-surprises.co.uk designates 80.68.93.37 as permitted sender) X-PHP-List-Original-Sender: michael@no-surprises.co.uk X-Host-Fingerprint: 80.68.93.37 river.mgdm.net Received: from [80.68.93.37] ([80.68.93.37:33612] helo=river.mgdm.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 48/20-25701-F2365ED4 for ; Tue, 31 May 2011 17:52:47 -0400 Received: from [192.168.1.65] (87-194-154-8.bethere.co.uk [87.194.154.8]) (Authenticated sender: michael) by river.mgdm.net (Postfix) with ESMTPSA id 0BE9ADC98C for ; Tue, 31 May 2011 22:52:43 +0100 (BST) Message-ID: <4DE5632B.6070609@no-surprises.co.uk> Date: Tue, 31 May 2011 22:52:43 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 MIME-Version: 1.0 CC: PHP internals References: <4DE5368A.6050603@moonspot.net> In-Reply-To: <4DE5368A.6050603@moonspot.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC: Short syntax for Arrays (redux) From: michael@no-surprises.co.uk (Michael Maclean) On 31/05/11 19:42, Brian Moon wrote: > https://wiki.php.net/rfc/shortsyntaxforarrays > > Since this was brought again recently by Rasmus I'm all for this, though I would confess to having a preference for the second syntax: $arr = [ 'foo' => 'bar', 'baz' => 'foo' ] seems to fit better with PHP than the other one, JSON-compatibility aside. -- Cheers, Michael