Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52570 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52139 invoked from network); 31 May 2011 19:08:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2011 19:08:00 -0000 X-Host-Fingerprint: 82.238.217.133 vbo91-1-82-238-217-133.fbx.proxad.net Received: from [82.238.217.133] ([82.238.217.133:26970] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/84-25701-C8C35ED4 for ; Tue, 31 May 2011 15:07:57 -0400 To: internals@lists.php.net Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes References: <4DE5368A.6050603@moonspot.net> Date: Tue, 31 May 2011 21:07:54 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Organization: OSInet Message-ID: User-Agent: Opera Mail/11.11 (Linux) X-Posted-By: 82.238.217.133 Subject: Re: RFC: Short syntax for Arrays (redux) From: fgm@osinet.fr (fgm) Voting in favor of a short syntax, as a mostly userland dev, seems a = no-brainer, but both suggested syntaxes and patches are rather unnatural= : = they attempt to mimic JSON syntax, but do not go the whole way. The second syntax, possibly more natural to PHP devs, might well be more= = trouble than it is worth, though, as it is quite close to the existing = ()-braced format, only with [], thus possibly disturbing new users of th= e = language. The first syntax, being more remote from the normal array() = initializer format, might well be less disturbing. But in that case, it = = might just as well be completely handle a complete JSON initialization = format, without the need for a json_decode(). Le Tue, 31 May 2011 20:42:18 +0200, Brian Moon a = =C3=A9crit: > https://wiki.php.net/rfc/shortsyntaxforarrays > > Since this was brought again recently by Rasmus = > (http://markmail.org/message/fx3brcm4ekh645se) and on Twitter where = > several people including Andi chimed in on it and Ilia seemed to rever= se = > his thoughts as well (with caveats), I thought I would start a real = > thread about 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 betwee= n = > core developers and userland votes seems to show the opposite it would= = > be irresponsible to submit a patch witch is not supported or maintaine= d = > in the 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, mo= st = > 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 JSON as an interface, this type of syntax would be mo= st = > welcome in the day to day life of a PHP developer. > > I would prefer (as Rasmus pointed out) not to start a long discussion = = > about it. Primarily I would be curious if anyone on the lists (from th= e = > RFC wiki 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, = > Stanislav Malyshev, Brian Moon, Kalle Sommer Nielsen, Edin Kadribasic > > Contra: Antony Dovgal, Derick Rethans, Jani Taskinen, Lokrain, Felipe = = > Pena, Lukas Kahwe Smith, Marcus Boerger, David Soria Parra, Johannes = > Schl=C3=BCter, Maciek Sokolewicz, Philip Olson, Ilia Alshanetsky, Dani= el = > 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 Lu= k, = > Hans Ahlin, Karoly Negyesi, Guilherme Blanco, Jonathan-Bond Caron > > Contra: Geoffrey Sneddon, Tomi Kaistila, David Z=C3=BChlke > > -- = Utilisant le logiciel de courrier r=C3=A9volutionnaire d'Opera : = http://www.opera.com/mail/