Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52583 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95848 invoked from network); 31 May 2011 21:35:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2011 21:35:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=ilia@prohost.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ilia@prohost.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain prohost.org designates 209.85.214.42 as permitted sender) X-PHP-List-Original-Sender: ilia@prohost.org X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:60487] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/FC-25701-F2F55ED4 for ; Tue, 31 May 2011 17:35:45 -0400 Received: by bwz18 with SMTP id 18so4479163bwz.29 for ; Tue, 31 May 2011 14:35:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.139.199 with SMTP id f7mr4930093bku.23.1306877739932; Tue, 31 May 2011 14:35:39 -0700 (PDT) Received: by 10.204.72.3 with HTTP; Tue, 31 May 2011 14:35:39 -0700 (PDT) In-Reply-To: <4DE5368A.6050603@moonspot.net> References: <4DE5368A.6050603@moonspot.net> Date: Tue, 31 May 2011 23:35:39 +0200 Message-ID: To: Brian Moon Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC: Short syntax for Arrays (redux) From: ilia@prohost.org (Ilia Alshanetsky) After reviewing the patch (again), I think there is no harm in support short-array syntax, similar to JSON format: $a =3D [1, 2, 3]; $b =3D ['foo': 'orange', 'bar': 'apple', 'baz': 'lemon']; So, I am changing my previous -1 to +1. On Tue, May 31, 2011 at 8:42 PM, Brian Moon wrote: > https://wiki.php.net/rfc/shortsyntaxforarrays > > Since this was brought again recently by Rasmus > (http://markmail.org/message/fx3brcm4ekh645se) and on Twitter where sever= al > people including Andi chimed in on it and Ilia seemed to reverse his > thoughts as well (with caveats), I thought I would start a real thread ab= out > it. The reason the RFC stalled was stated as: > > "This patch will not be accepted because slight majority of the core > developers voted against. Though if you take a accumulated mean between c= ore > developers and userland votes seems to show the opposite it would be > irresponsible to submit a patch witch is not supported or maintained in t= he > long run." > > So, the PHP users want it, but too many PHP core devs did not want it or = did > not see the use of it. From rereading the mailing list archive, most had = the > tone of "I don't see a reason for it." I was in that camp in 2003 when it > first came up. However, with the emergence of JSON and systems that use J= SON > as an interface, this type of syntax would be most welcome in the day to = day > life of a PHP developer. > > I would prefer (as Rasmus pointed out) not to start a long discussion abo= ut > it. Primarily I would be curious if anyone on the lists (from the RFC wik= i > page) below would like to change your vote or if you are not listed below > and would like to be counted, that would be great too. > > PHP SVN account holder voters > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > Pro: Andrei Zmievski, Andi Gutmans, Pierre Joye, Rasmus Lerdorf, Stanisla= v > Malyshev, Brian Moon, Kalle Sommer Nielsen, Edin Kadribasic > > Contra: Antony Dovgal, Derick Rethans, Jani Taskinen, Lokrain, Felipe Pen= a, > Lukas Kahwe Smith, Marcus Boerger, David Soria Parra, Johannes Schl=FCter= , > Maciek Sokolewicz, Philip Olson, Ilia Alshanetsky, Daniel Brown, Jochem > Maas, Hannes Magnusson, David Coallier > > > Other voters > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Pro: Sebastian Deutsch, Ryusuke Sekiyama, Stefan Marr, Alexey Zakhlestin, > Carl P. Corliss, Darius Jahandarie, Giedrius D, Eric Coleman, Max Antonov= , > Mike Ford, Larry Garfield, Sam Barrow, Taylor Luk, Hans Ahlin, Karoly > Negyesi, Guilherme Blanco, Jonathan-Bond Caron > > Contra: Geoffrey Sneddon, Tomi Kaistila, David Z=FChlke > > > -- > Brian. > http://brian.moonspot.net > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >