Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37942 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49392 invoked from network); 28 May 2008 06:44:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 May 2008 06:44:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:60550] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/D4-15519-93FFC384 for ; Wed, 28 May 2008 02:44:11 -0400 Received: from [192.168.200.148] (c-24-6-219-206.hsd1.ca.comcast.net [24.6.219.206]) (authenticated bits=0) by mail.lerdorf.com (8.14.3/8.14.3/Debian-4) with ESMTP id m4S6i3pQ029966; Tue, 27 May 2008 23:44:03 -0700 Message-ID: <483CFF33.6060302@lerdorf.com> Date: Tue, 27 May 2008 23:44:03 -0700 User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) 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> In-Reply-To: <483CFBAB.8030400@daylessday.org> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (mail.lerdorf.com [204.11.219.139]); Tue, 27 May 2008 23:44:03 -0700 (PDT) Subject: Re: [PHP-DEV] Re: Short syntax for array literals [...] From: rasmus@lerdorf.com (Rasmus Lerdorf) Antony Dovgal wrote: > On 28.05.2008 10:25, Stanislav Malyshev wrote: >> Hi! >> >>> You do understand that you will not be able to use this syntax in >>> your products for at least next 5 years without rising min required >>> PHP version to the latest one, right? >>> That makes it even more useless. >> >> That's great argument. So nice to know everything we do for 5.3 and 6 >> is completely useless :) > > No, THAT is really great argument. > Compare "everything we do" with "backward incompatible syntax that > duplicates already existing one, but 5 characters shorter" and find two > differences. 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. 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. 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. -Rasmus