Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34694 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37966 invoked by uid 1010); 11 Jan 2008 11:19:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 37948 invoked from network); 11 Jan 2008 11:19:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2008 11:19:04 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.190 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.198.190 rv-out-0910.google.com Received: from [209.85.198.190] ([209.85.198.190:3956] helo=rv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7D/61-27385-5A057874 for ; Fri, 11 Jan 2008 06:19:03 -0500 Received: by rv-out-0910.google.com with SMTP id k15so903194rvb.23 for ; Fri, 11 Jan 2008 03:19:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=XZxWC3Evh1r1IpX1v3WewAVI24OD0mGkI4FR+HUiAJA=; b=Bmwq1EafjRgHhf43d8tZsAliw3evhyZbAGxrxlAgSNz+TdJVUxhw9IQHvI7BQnOCJu9PYbmLVGCnSjGIJsuftQ7RkcDu8QIX+xc5bjijUtOib4b7+ndecp76Pg3vrOJMiOEU8I/eFBsK+eeWC20sgAjKwnEpxJczmL+WlrncA50= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PLloiNPKVgP8WO8gJkY1PsDAkHFlqwbt+LZwJhwIGx1wArIKhr8rD4NGjxoRVLIJ77yOv0o3tozaZmBKeEBIe38EnL+qbb0K7Onw1ZFnpwAVcXF+rQVRcBMjYLn7KVJqUtuV+sehgD7fFF+GBxAw62YmPy30SpVI4OR2Ztkp30U= Received: by 10.140.134.15 with SMTP id h15mr1929700rvd.51.1200050340236; Fri, 11 Jan 2008 03:19:00 -0800 (PST) Received: by 10.141.70.21 with HTTP; Fri, 11 Jan 2008 03:19:00 -0800 (PST) Message-ID: Date: Fri, 11 Jan 2008 12:19:00 +0100 To: antonov@tessart.ru Cc: internals@lists.php.net In-Reply-To: <36.21.27385.B1F47874@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <698DE66518E7CA45812BD18E807866CE011C7C7E@us-ex1.zend.net> <08.94.51656.F8937874@pb1.pair.com> <1200048864.4755.9.camel@johannes.nop> <36.21.27385.B1F47874@pb1.pair.com> Subject: Re: [PHP-DEV] Re: Array syntax [] From: pierre.php@gmail.com (Pierre) Hi, Guys, there is really no point to argue about aesthetic or taste. Make your point by using +1/-1 and that's it. As said, the trolls quota has been used already. Thanks for my bandwidth, On Jan 11, 2008 12:12 PM, Max Antonov wrote: > Johannes Schl=FCter writes: > > > > > 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 > javascript and it very usable > > (excuse me for my English) > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Pierre http://blog.thepimp.net | http://www.libgd.org