Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52995 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38966 invoked from network); 5 Jun 2011 23:59:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2011 23:59:18 -0000 Authentication-Results: pb1.pair.com header.from=dukeofgaming@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=dukeofgaming@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: dukeofgaming@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gy0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:38355] helo=mail-gy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/AB-26000-5581CED4 for ; Sun, 05 Jun 2011 19:59:18 -0400 Received: by gyb11 with SMTP id 11so1551142gyb.29 for ; Sun, 05 Jun 2011 16:59:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=VVxH99NpZ2XYLo3v5BaHWoYqvgOBoQmOKWheMwbmKcg=; b=Kwqxwm6gJAin2CnovYr1WhBLnHbjy395oxsxo1Ze9cjSLCxLd6vGGoildNxwsaiCWz Jb/WebtmnBQFuSNWbwP90yfK2/1gemsn9AuvC0cUPzK4//Nwk1KLQ0BBaUPDEWmhdjnV TPSDL1uPWSr9lg9RDr2MdAaAG83/35kTHdE7o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=RI1WvzVKqTwyhctHCbOD9y3ccE+3xIfab3H0Iamm2982cSx/cE9J7HFEvQNUFlbADH Tp0QiSuP3jWluDpIoj0u3tJaTFKFy5LgtPVmC8LohExbVxdQ3AjUEZZ6qzMyIqd7AOsc aLUnf3GOo/XT/I19K9HvKxGNXV17qC+V460E0= Received: by 10.101.166.1 with SMTP id t1mr3189846ano.43.1307318354141; Sun, 05 Jun 2011 16:59:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.96.15 with HTTP; Sun, 5 Jun 2011 16:58:54 -0700 (PDT) In-Reply-To: <1181529113.20110605190617@cypressintegrated.com> References: <1181529113.20110605190617@cypressintegrated.com> Date: Sun, 5 Jun 2011 18:58:54 -0500 Message-ID: To: Sanford Whiteman Cc: PHP internals Content-Type: multipart/alternative; boundary=005045015be81b63cc04a4ffc6ac Subject: Re: [PHP-DEV] Object and Array Literals From: dukeofgaming@gmail.com (dukeofgaming) --005045015be81b63cc04a4ffc6ac Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sun, Jun 5, 2011 at 6:06 PM, Sanford Whiteman < sandy@cypressintegrated.com> wrote: > > -- I do not feel that the acronym JSON has any clarifying nor edifying > place in the RFC describing this syntax. > > Rather, I would suggest one of the following: > > =B7 JavaScript-like [object|array] literal syntax > =B7 bare-bracket [object|array] literal syntax > =B7 short [object|array] literal syntax > =B7 compact [object|array] ... > =B7 quick [object|array] ... > =B7 colon-pair [object|array] ... > > I have actually been excited about the discussion of this feature area > and anticipate my eventual +1 if "JSON" could be removed from the RFC. > Even though the term doesn't affect the way the feature works, by > upvoting the RFC one is approving of wording that may make it to the > general public, and I think this would be bad for PHP. > It might also be noted (h/t David Vega) that Ruby adopted a syntax > similar to that proposed here and completely avoided using the term > JSON in final documentation, as I hope will be done with PHP even if > this RFC continues to use the term. > Bravo for ponting that out, your argument has cleared my mind a little whil= e trying to understand this side (I'm actually against the JSON interoperability argument [because it does not make sense to me], but not the syntax). After reading this new RFC and pondering about the JSONy implications, the multi-part conclusion that I reached is that: a) JSON is actually being mentioned to advocate for the syntax with for the sake of *familiarity*. b) Interoperability is being confused with familiarity. c) Actual interoperability of the syntax with JSON is just a happy coincidence (same as with Ruby) d) In no context this notation could function as JSON and PHP at the same time, mainly because PHP requires tags e) There is a strong resistance to change, I bet the detractors of this short syntax (even with the ":") would change their opinion after using it, just the way some of us used to hate the idea of namespaces with "\" and after using it changed our opinion (specially with the autoloading standard that actually reflects file structure, e.g. in Symfony2). f) If JSON ceased to exist in this very moment, supporters of the syntax would be still supporting it and perhaps detractors would accept it. The effect of mentioning JSON, and implying direct compatibility with JSON technologies and JSON itself is just adding FUD. +1 to removing references to JSON from the RFC, because "[ ]", "{ }" and ":= " make enough sense by themselves. Regards, David Vega --005045015be81b63cc04a4ffc6ac--