Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37941 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45299 invoked from network); 28 May 2008 06:31:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 May 2008 06:31:45 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.94.239.7 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.7 mail.jdi-ict.nl Linux 2.6 Received: from [82.94.239.7] ([82.94.239.7:45002] helo=mail.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/E3-15519-05CFC384 for ; Wed, 28 May 2008 02:31:44 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id m4S6VWfE021888; Wed, 28 May 2008 08:31:33 +0200 Date: Wed, 28 May 2008 08:31:32 +0200 (CEST) X-X-Sender: derick@kossu.ez.no To: jani.taskinen@iki.fi cc: Sebastian Deutsch , PHP Developers Mailing List In-Reply-To: <483C95DD.6000006@sci.fi> Message-ID: References: <0412F6FE505049F7901EAB8C61774839@pc> <87.77.15519.9E47C384@pb1.pair.com> <97.F8.15519.1229C384@pb1.pair.com> <483C94EA.90507@zend.com> <483C95DD.6000006@sci.fi> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8 Subject: Re: [PHP-DEV] Re: Short syntax for array literals [...] From: derick@php.net (Derick Rethans) On Wed, 28 May 2008, Jani Taskinen wrote: > Stanislav Malyshev kirjoitti: > > > please add your votes > > > > I'm +1. > > > > BTW - how hard would it be to add voting interface to the wiki? > > For the record: I'm -1. array() is enough. > Ridiculous idea to begin with..and please no more voting, isn't there enough > spam already? I agree on both points. I've mentioned this before as well, but I'll repeat. There is no reason to add another syntax for *exactly* the same thing, especially because it's ungoogable and confusing if you have to read code like: $a = [8,['a','b','c'],'foo']; $b = $a[8][1]; Please let's not turn PHP into unreadable syntax like perl usually advocates. Besides this, it's only really useful for multi-dimensional arrays - and if you go there you've most likely lost anyway. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org