Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37946 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57539 invoked from network); 28 May 2008 07:20:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 May 2008 07:20:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.94.239.7 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.7 mail.jdi-ict.nl Linux 2.6 Received: from [82.94.239.7] ([82.94.239.7:43256] helo=mail.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/76-15519-2A70D384 for ; Wed, 28 May 2008 03:20:03 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id m4S7JtZh001489; Wed, 28 May 2008 09:19:56 +0200 Date: Wed, 28 May 2008 09:19:56 +0200 (CEST) X-X-Sender: derick@kossu.ez.no To: Antony Dovgal cc: Rasmus Lerdorf , internals@lists.php.net In-Reply-To: <483D05B6.30804@daylessday.org> Message-ID: References: <0412F6FE505049F7901EAB8C61774839@pc> <87.77.15519.9E47C384@pb1.pair.com> <97.F8.15519.1229C384@pb1.pair.com> <483CF9E9.2010803@daylessday.org> <483CFAE0.203@zend.com> <483CFBAB.8030400@daylessday.org> <483CFF33.6060302@lerdorf.com> <483D05B6.30804@daylessday.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8 Subject: Re: [PHP-DEV] Re: Short syntax for array literals [...] From: derick@php.net (Derick Rethans) On Wed, 28 May 2008, Antony Dovgal wrote: > On 28.05.2008 10:44, Rasmus Lerdorf wrote: > > Today's web developer is typically writing half their app in some > > variety of Ecmascript, either Javascript or Actionscript and this > > array syntax is second nature to all those folks. > > I don't recall any languages to introduce new syntax because it's so > handy to those who come from PHP and I see no reasons for us to do it > either. I perfectly understand that we (well, you) did it many times > in the beginning, but I believe that time is now gone. > > The array syntax we have exists for many years and is used in > gazillions lines of code, it's known to every developer who have ever > seen a PHP script. In the same time, the [] syntax will definitely > confuse people (wth? this surely looks like invalid syntax!) and will > only help to those how don't know PHP, but have a certain experience > with *script languages, i.e. you're going to do a favor for 1% and > confuse the remaining 99%. Right, and I will add immediately to my coding standard that this is forbidden to use. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org