Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37967 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53814 invoked from network); 28 May 2008 15:27:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 May 2008 15:27:37 -0000 Authentication-Results: pb1.pair.com header.from=andi@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=andi@zend.com; spf=pass; 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: andi@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:53902] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2B/47-15519-8E97D384 for ; Wed, 28 May 2008 11:27:37 -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 18:28:46 +0300 Date: Wed, 28 May 2008 08:28:24 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message-ID: <698DE66518E7CA45812BD18E807866CE01A53A05@us-ex1.zend.net> In-Reply-To: <483CFF33.6060302@lerdorf.com> Content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PHP-DEV] Re: Short syntax for array literals [...] Thread-Index: AcjAjoqiIAIIvFrTSbimqHTA2kOq5gAQNXPA 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> To: "Rasmus Lerdorf" , "Antony Dovgal" Cc: X-OriginalArrivalTime: 28 May 2008 15:28:46.0558 (UTC) FILETIME=[8537AFE0:01C8C0D7] Subject: RE: [PHP-DEV] Re: Short syntax for array literals [...] From: andi@zend.com ("Andi Gutmans") > -----Original Message----- > From: Rasmus Lerdorf [mailto:rasmus@lerdorf.com] > Sent: Tuesday, May 27, 2008 11:44 PM > To: Antony Dovgal > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV] Re: Short syntax for array literals [...] > > At a certain level everything is just syntax. There is nothing about a > "for" loop that can't be done with a "while" loop. All OO code could > be > written procedurally as well. PHP has always made an effort to match > the expectations of the typical web developer. 14 years ago the > typical > web developer knew Perl and C, so a lot of syntax was borrowed from > those two languages. >=20 > Then kids started coming out of universities with Java on their brains, > so PHP adopted a Java-like OO syntax. 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. >=20 > We have to be very conservative and pick our spots when it comes to > evolving the language syntax, but we also can't bunker down and get > stubborn and expect the world to stand still around us. If we had > taken > that same position at PHP 2, PHP 3, PHP 4 or even PHP 5 just because a > handful of developers were content with the current state of things, we > would be in serious trouble today. I agree completely and this is exactly the situation where in the past we did evolve the language. We've been rightfully so conservative about it but I think this case is really a no brainer. There's a minority here who thinks it's confusing but besides it being a small minority, as Rasmus says, a large part of our user base especially the new ones entering development will be very used to this syntax and it will make their lives easier. +1 from me (in case my previous email without the vote wasn't clear :) Andi