Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52684 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50983 invoked from network); 1 Jun 2011 16:05:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2011 16:05:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=shadda@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=shadda@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.173 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: shadda@gmail.com X-Host-Fingerprint: 209.85.212.173 mail-px0-f173.google.com Received: from [209.85.212.173] ([209.85.212.173:53880] helo=mail-px0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 27/29-32367-56366ED4 for ; Wed, 01 Jun 2011 12:05:58 -0400 Received: by pxi16 with SMTP id 16so3527486pxi.18 for ; Wed, 01 Jun 2011 09:05:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=+ppEQWd5gEtiR7hc1PhNYEq6yxx/qRem8scNElefQsU=; b=wBaYQF8eduF1GP45fFnZuQ0e0gTbsZ77jHsio7Rg/rhDoVXVrfeWLc5V9OrduYuB5Q U429p9DvP7IeOWJnePMYeEeRZU0sWlJLehRk556cB1QAxElWILEZKDVEAzP83/DhTRNW WtMNLm051lO0x7/xKzqvGGpj9YVGb2QsjoDX4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=DP10shNsbaS7PMFPDIWaheS1VQbVfpfVfIUpSZrkiv8J2TIp0dwRmonN2DBOZYxo1B 2b8YnSUdXDatIBMSE4AFeb31QQeWsWt16hh4y2VysS/MwkYBXaV/NfXvLGZJkz7Cf1EZ yoneJzc/YKk1z3MpPVlOP0u+235FDei874RTg= Received: by 10.68.22.1 with SMTP id z1mr3227205pbe.36.1306944354518; Wed, 01 Jun 2011 09:05:54 -0700 (PDT) Received: from mattw-mbp.adknowledge.com ([204.137.29.243]) by mx.google.com with ESMTPS id p5sm1186804pbd.44.2011.06.01.09.05.52 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Jun 2011 09:05:53 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii In-Reply-To: <4DE66128.1080006@lerdorf.com> Date: Wed, 1 Jun 2011 11:03:49 -0500 Cc: Justin Carmony , PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <3C4EC449-1013-4ED6-9113-F37FAEBD0566@seancoates.com> <94183529-D0B3-44B0-8AC8-CC229438F58D@roshambo.org> <4DE66128.1080006@lerdorf.com> To: Rasmus X-Mailer: Apple Mail (2.1084) Subject: Re: [PHP-DEV] Re: RFC: Short syntax for Arrays (redux) From: shadda@gmail.com (Matt Wilson) Would it be possible to have a vote on the various options being = proposed here? I think JSON syntax is definitely more concise and easier to type, as = well as more convenient -- but I don't think it makes sense for PHP = without changing how arrays work (I'm all for that, but that's a = different discussion) So for me, I'm -1 on a fudged JSON syntax with key: value syntax, even = though I prefer that syntax over =3D> But I'm =3D> on being able to simply drop 'array' from array = delcarations.=20 I have a third option that I'm sure no one but me would like, what if we = had some way to designate an item as an object, instead of an = associative array? This could be handled either with : instead of =3D> = or {} instead of (). {} instead of () seems to make more sense. ('arraykey' =3D> {'property': 'value'}) Mimicking JSON just seems pointless if we can't actually provide any = benefit to doing so, since we'd still either have to differentiate = between object/array *and* load via eval() (-) or json_decode() (+) This RFC just seems premature, or at least doesn't offer enough voting = options. On Jun 1, 2011, at 10:56 AM, Rasmus wrote: > On 06/01/2011 08:00 AM, Justin Carmony wrote: >> In all seriousness, there is a vast majority of PHP developers who = are not represented on this list. I was surprised to see someone = mentioning for calling for another vote so soon after this discussion = came up. Perhaps instead of debating on readability and usefulness, we = actually do some research with major PHP users to get their opinions? = I'm not saying we should have every PHP user in the world vote, but = there are talented PHP developers who are not apart of the core that = have valid and insightful views and opinions. >>=20 >> So what I would first propose is we finalize the RFC because right = now it is has two options, and doesn't deal with objects. I think = everyone is starting to agree "=3D>" is much more uniform than ":", so = lets drop the ":" from the RFC.=20 >>=20 >> Then, lets request some feedback from reputable PHP developers, like = authors of popular frameworks and PHP solutions. This way we can get = some real input from people who are not on the internals email list. = This can help those who make the decision on whether or not to accept = the RFC aware not only of their own personal opinion and preferences, = but the opinions and preferences of the PHP community as a whole. >>=20 >> I know I'm newer to the list, and don't want to step on any toes, but = I think the RFC process could really benefit from getting this type of = feedback. >=20 > I think it is well understood that PHP internals discussion happens on > this internals mailing list. It is not a restricted list in any way. > Anybody is able to participate here if they want their voice heard. >=20 > -Rasmus >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20