Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37949 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61983 invoked from network); 28 May 2008 07:34:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 May 2008 07:34:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:62095] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/57-15519-9FA0D384 for ; Wed, 28 May 2008 03:34:18 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 28 May 2008 10:35:29 +0300 Received: from [192.168.17.46] ([192.168.17.46]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 28 May 2008 00:35:26 -0700 Message-ID: <483D0AF0.5050902@zend.com> Date: Wed, 28 May 2008 02:34:08 -0500 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Antony Dovgal CC: internals@lists.php.net 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> In-Reply-To: <483D05B6.30804@daylessday.org> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 28 May 2008 07:35:26.0665 (UTC) FILETIME=[658FEB90:01C8C095] Subject: Re: [PHP-DEV] Re: Short syntax for array literals [...] From: stas@zend.com (Stanislav Malyshev) Hi! > 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. If they don't do it and we do, people come from them to us and not the reverse. The reason is to make life easier for people. And I think current results - 21:8 - tell something. > In the same time, the [] syntax will definitely confuse people (wth? > $a = [$a[1][2], 3]; /* wth does this mean? */ I do not and will not believe that you - or anybody smart enough to use PHP - would seriously have any trouble understanding what that means. Arguing it is extraneous is one thing, but presenting PHP users as senseless robots hopelessly confused by even simplest concepts like using [] for arrays just doesn't make any sense. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com