Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34689 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6322 invoked by uid 1010); 11 Jan 2008 09:40:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 6307 invoked from network); 11 Jan 2008 09:40:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2008 09:40:34 -0000 X-Host-Fingerprint: 195.16.58.126 unknown Received: from [195.16.58.126] ([195.16.58.126:27971] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 08/94-51656-F8937874 for ; Fri, 11 Jan 2008 04:40:32 -0500 Message-ID: <08.94.51656.F8937874@pb1.pair.com> To: internals@lists.php.net Date: Fri, 11 Jan 2008 12:40:28 +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> In-Reply-To: <698DE66518E7CA45812BD18E807866CE011C7C7E@us-ex1.zend.net> 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) I use PHP since version 5.0 release I'd like use this syntax $a =3D [ 2,6,9 ]; $b =3D ['a'=3D>1 , 'v'=3D>'string']; foo(['bar'=3D>2, 'test'=3Dnull]); Andi Gutmans =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > Andi 2003: > http://www.mail-archive.com/internals@lists.php.net/msg03896.html >=20 > =20 >=20 > Andi's brain evolves 2007: > http://marc.info/?l=3Dphp-internals&m=3D117057393530217&w=3D2 >=20 > =20 >=20 > And today I'm still +1. >=20 > =20 >=20 > I really think by looking at some of the examples I worked through with= > my original posting in February and some of the recent comments the > majority of people find [] more readable. It's cleaner, shorter and > comes natural to most people. It's not about saving 5 characters as I > type quickly, I really feel it's more readable and natural. We're kind > of odd as a language in that sense i.e. array(...) >=20 > =20 >=20 > I think almost everyone here agreed it'd benefit them and maybe the one= s > who don't would go through the same process I went through once they ge= t > used to it J >=20 > =20 >=20 > Andi >=20 > =20 >=20 >=20