Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37999 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7926 invoked from network); 29 May 2008 18:55:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 May 2008 18:55:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.163 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.163 mail4.netbeat.de Received: from [83.243.58.163] ([83.243.58.163:35943] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 39/D2-03918-C2CFE384 for ; Thu, 29 May 2008 14:55:42 -0400 Received: (qmail 31323 invoked by uid 507); 29 May 2008 18:55:34 -0000 Received: from unknown (HELO ?192.168.1.103?) (postmaster%schlueters.de@88.217.43.249) by mail4.netbeat.de with ESMTPA; 29 May 2008 18:55:34 -0000 To: "\"Stan Vassilev | FM\"" Cc: PHP Developers Mailing List In-Reply-To: <0412F6FE505049F7901EAB8C61774839@pc> References: <0412F6FE505049F7901EAB8C61774839@pc> Content-Type: text/plain Date: Thu, 29 May 2008 20:55:26 +0200 Message-ID: <1212087326.20983.22.camel@goldfinger.johannes.nop> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-4.fc8) Content-Transfer-Encoding: 7bit Subject: Re: Short syntax for array literals [...] From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, On Thu, 2008-05-22 at 05:12 +0300, "Stan Vassilev | FM" wrote: > It looks as there may not be a specific reason not to allow the JS > syntax as an alternative syntax (while keeping the current one in parallel): > > $a = [[1, 2], [3, 4], 5, 6]; > > $b = ['a' => 1, 'b' =>2]; ok, in a previous post I mentioned this was discussed short time ago (in January to be precise) but well, then once again with more details: When I learned more about PHP one of the things I learned was that PHP was proud to be a bit more verbose than other languages while not as verbose as others. By using the array()-Syntax newcomers had a thing to look for when reading code which I always saw as a central design principal of the language. Now we can change such principals from time to time, the world changes, so can PHP. But for changing such principals we need a clear consensus imo. In the January discussion the result was around 50:50 which isn't a clear consensus. Back then there was a small difference between "committers" and "non-committers. In the group of the "committers" there were a few more -1 than +1 votes, within the non-committers-group it was the other way round (your favorite search engine should give you the exact numbers, don't have it at hand). Now my second assumption is that "committers" have thought a little bit more about language than "random" commenters" of course there are exceptions but I think the general picture should be like that. So in January this change wasn't accepted. So, now, less than half a year later the discussion restarts and we aren't much further, from what I see it still looks like a 50:50 to me - without "counting". Now to my own opinion: I read way more code than I write, code from different people using different coding styles etc. so I like a more verbose syntax. johannes