Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52629 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6364 invoked from network); 1 Jun 2011 06:24:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2011 06:24:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 213.123.26.187 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 213.123.26.187 c2beaomr09.btconnect.com Received: from [213.123.26.187] ([213.123.26.187:42801] helo=mail.btconnect.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 08/B0-02383-11BD5ED4 for ; Wed, 01 Jun 2011 02:24:18 -0400 Received: from host81-138-11-136.in-addr.btopenworld.com (EHLO _10.0.0.4_) ([81.138.11.136]) by c2beaomr09.btconnect.com with ESMTP id DBS57648; Wed, 01 Jun 2011 07:24:13 +0100 (BST) Message-ID: <4DE5DB0D.9040603@lsces.co.uk> Date: Wed, 01 Jun 2011 07:24:13 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.19) Gecko/20110420 SUSE/2.0.14-2.2 SeaMonkey/2.0.14 MIME-Version: 1.0 To: PHP internals References: <4DE5368A.6050603@moonspot.net> <4DE5632B.6070609@no-surprises.co.uk> In-Reply-To: <4DE5632B.6070609@no-surprises.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mirapoint-IP-Reputation: reputation=Fair-1, source=Queried, refid=tid=0001.0A0B0301.4DE5DB0D.009D, actions=tag X-Junkmail-Premium-Raw: score=7/50, refid=2.7.2:2011.6.1.44816:17:7.586, ip=81.138.11.136, rules=__MOZILLA_MSGID, __HAS_MSGID, __SANE_MSGID, __USER_AGENT, __MIME_VERSION, __TO_MALFORMED_2, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __CT, __CT_TEXT_PLAIN, __CTE, __ANY_URI, __URI_NO_MAILTO, __CP_URI_IN_BODY, BODYTEXTP_SIZE_3000_LESS, BODY_SIZE_900_999, __MIME_TEXT_ONLY, RDNS_GENERIC_POOLED, BODY_SIZE_5000_LESS, RDNS_SUSP_GENERIC, BODY_SIZE_1000_LESS, RDNS_SUSP, BODY_SIZE_2000_LESS, BODY_SIZE_7000_LESS X-Junkmail-Status: score=44/50, host=c2beaomr09.btconnect.com X-Junkmail-Signature-Raw: score=suspect(9), refid=str=0001.0A0B0206.4DE5DB0E.0142,ss=2,fgs=0, ip=0.0.0.0, so=2010-07-22 22:03:31, dmn=2009-09-10 00:05:08, mode=multiengine X-Junkmail-IWF: false Subject: Re: [PHP-DEV] RFC: Short syntax for Arrays (redux) From: lester@lsces.co.uk (Lester Caine) Michael Maclean 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. Keeping the => does make a lot more sense since it differentiates that PHP CAN do things here that simply do not work in JSON? This ONLY works with JSON when one takes the care to avoid associative arrays, and => in my mind has always been 'associate' ... -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php