Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27927 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31801 invoked by uid 1010); 8 Feb 2007 23:26:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 31785 invoked from network); 8 Feb 2007 23:26:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Feb 2007 23:26:24 -0000 Authentication-Results: pb1.pair.com header.from=vladb@pseudo-infinity.ro; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=vladb@pseudo-infinity.ro; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pseudo-infinity.ro from 217.10.193.165 cause and error) X-PHP-List-Original-Sender: vladb@pseudo-infinity.ro X-Host-Fingerprint: 217.10.193.165 ns4.dr.myx.net Linux 2.4/2.6 Received: from [217.10.193.165] ([217.10.193.165:43514] helo=mail4.dr.myx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 78/C5-00136-F91BBC54 for ; Thu, 08 Feb 2007 18:26:24 -0500 Received: from vlad-bosinceanus-computer.local (home-24035.b.astral.ro [193.231.183.184]) by mail4.dr.myx.net (mydomain.myx.net) with ESMTP id D8DCF10BE28; Fri, 9 Feb 2007 01:26:19 +0200 (EET) Message-ID: <45CBB19C.3000001@pseudo-infinity.ro> Date: Fri, 09 Feb 2007 01:26:20 +0200 User-Agent: Thunderbird 2.0b2 (Macintosh/20070116) MIME-Version: 1.0 To: Brian Moon Cc: Mathias Bank , internals@lists.php.net References: <011701c7482d$a39f6910$6500a8c0@zend.2k> <45.24.00136.038ABC54@pb1.pair.com> <45CBAC4A.80801@dealnews.com> In-Reply-To: <45CBAC4A.80801@dealnews.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Syntactic improvement to array From: vladb@pseudo-infinity.ro (Vlad Bosinceanu) I for one cringe when I see list(), and I'd love to see [$a, $b] = array(...) become an alternative to that. Can't say I care that much about an alternative syntax for dealing with array creation, but I wouldn't mind. "[]" already suggests "array", and I guess existing developers will have no problem picking it up. Newbies would bump into the docs just as they currently bump into the array section. I don't see how an addition like this could affect people's paychecks. V Brian Moon wrote: >> But I have to ask: what's the matter. A good programming language >> should not force the developer to program as the language wants. A >> good programming language should support the developer in writing >> code he likes, the way he likes. > > So, you are new to php internal huh? =) > > Seriously, the language can not be adapted to every whim of every > developer. Adding several ways to do things was fine when PHP was a > neat tool to mess around with. Now people's paychecks depend on it. > IMO, it's a slippery slope to just add things because you can. > >> This could be improved by an alternative syntax. > > Ah, but not all see it as an improvement. Peronsally, every time I > see this type of syntax in perl or javascript, I cringe. Luckily I > don't do much perl. When I see it in JS, I change it. > > The funny thing is that Andi probably could have just commited this to > the PHP6 tree and made an announcement. There would have been ~4 > replies and it would have been over with. >