Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34693 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36127 invoked by uid 1010); 11 Jan 2008 11:12:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 36112 invoked from network); 11 Jan 2008 11:12:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2008 11:12:28 -0000 X-Host-Fingerprint: 195.16.58.126 unknown Received: from [195.16.58.126] ([195.16.58.126:5434] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/21-27385-B1F47874 for ; Fri, 11 Jan 2008 06:12:27 -0500 Message-ID: <36.21.27385.B1F47874@pb1.pair.com> To: internals@lists.php.net Date: Fri, 11 Jan 2008 14:12:25 +0300 Reply-To: antonov@tessart.ru Organization: TESSART Adversting Group User-Agent: Thunderbird 2.0.0.9 (X11/20071031) MIME-Version: 1.0 References: <698DE66518E7CA45812BD18E807866CE011C7C7E@us-ex1.zend.net> <08.94.51656.F8937874@pb1.pair.com> <1200048864.4755.9.camel@johannes.nop> In-Reply-To: <1200048864.4755.9.camel@johannes.nop> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Posted-By: 195.16.58.126 Subject: Re: Array syntax [] From: idler@instanceof.ru (Max Antonov) Johannes Schl=C3=BCter writes: >=20 > The last line is exactly why I won't like such a syntax. Just consider > the a bit worse call like > foo([1, $a[2]]); > I might even construct worse examples, is this a good-readable code? foo (array('a'=3D2,'b'=3D>array('x'=3D>5,'c'=3D>array(1,4,2)),'n'=3D>$bar= [4])); what difference in? foo(['a'=3D2,'b'=3D>['x'=3D>5,'c'=3D>[1,4,2]],'n'=3D>$bar[4]]); I think - it will be good readable in large projects too. Please look to code of ExtJS JavaScript Library - this syntax native in=20 javascript and it very usable (excuse me for my English)