Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52573 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60675 invoked from network); 31 May 2011 19:41:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2011 19:41:53 -0000 Authentication-Results: pb1.pair.com header.from=justin@justincarmony.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=justin@justincarmony.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain justincarmony.com from 74.125.83.170 cause and error) X-PHP-List-Original-Sender: justin@justincarmony.com X-Host-Fingerprint: 74.125.83.170 mail-pv0-f170.google.com Received: from [74.125.83.170] ([74.125.83.170:58257] helo=mail-pv0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E9/16-25701-67445ED4 for ; Tue, 31 May 2011 15:41:48 -0400 Received: by pvh21 with SMTP id 21so2341179pvh.29 for ; Tue, 31 May 2011 12:41:36 -0700 (PDT) Received: by 10.68.10.9 with SMTP id e9mr2938599pbb.255.1306870895841; Tue, 31 May 2011 12:41:35 -0700 (PDT) Received: from [192.168.1.101] (c-24-10-180-216.hsd1.ut.comcast.net [24.10.180.216]) by mx.google.com with ESMTPS id p5sm287377pbd.60.2011.05.31.12.41.33 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 31 May 2011 12:41:34 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/alternative; boundary=Apple-Mail-3--1307071 In-Reply-To: <4DE5368A.6050603@moonspot.net> Date: Tue, 31 May 2011 13:41:30 -0600 Cc: PHP internals Message-ID: <2593DC2A-0896-4C0F-A1C1-98F20CE57F07@justincarmony.com> References: <4DE5368A.6050603@moonspot.net> To: Brian Moon X-Mailer: Apple Mail (2.1084) Subject: Re: [PHP-DEV] RFC: Short syntax for Arrays (redux) From: justin@justincarmony.com (Justin Carmony) --Apple-Mail-3--1307071 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 This is my first time posting to the mailing list, been lurking for a = little while, but I would like to throw in my thoughts. I've written = about the idea of PHP supporting JSON notation on my blog before = (http://www.justincarmony.com/blog/2011/04/12/php-itch-to-scratch-object-n= otation/), and I think it would be beneficial because: - Frameworks and Libraries are becoming more verbose as they support = more modular designs. The more PHP as a language can do to help = developers make their frameworks less verbose (like supporting JSON like = notations), the happier developers will be.=20 - Most developers are familiar with JSON, so the learning curve for this = notation would be low. - While short hand for arrays would be nice, some developers are moving = to use objects more over arrays, so a shorthand that supports both = arrays and objects would be great. But the bottom line is I would love to help put together whatever is = required for a new RFC, and do anything to help others who don't see the = use for the short notation. Justin Carmony On May 31, 2011, at 12:42 PM, Brian Moon wrote: > https://wiki.php.net/rfc/shortsyntaxforarrays >=20 > 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 reverse = his thoughts as well (with caveats), I thought I would start a real = thread about it. The reason the RFC stalled was stated as: >=20 > "This patch will not be accepted because slight majority of the core = developers voted against. Though if you take a accumulated mean between = core developers and userland votes seems to show the opposite it would = be irresponsible to submit a patch witch is not supported or maintained = in the long run." >=20 > So, the PHP users want it, but too many PHP core devs did not want it = or did not see the use of it. =46rom 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 JSON as an interface, this type of syntax would be most = welcome in the day to day life of a PHP developer. >=20 > 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 the = 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. >=20 > 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 >=20 > Contra: Antony Dovgal, Derick Rethans, Jani Taskinen, Lokrain, Felipe = Pena, 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 >=20 >=20 > 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 >=20 > Contra: Geoffrey Sneddon, Tomi Kaistila, David Z=FChlke >=20 >=20 > --=20 > Brian. > http://brian.moonspot.net >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20 --Apple-Mail-3--1307071--