Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52612 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40072 invoked from network); 31 May 2011 23:30:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2011 23:30:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=mike503@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mike503@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mike503@gmail.com X-Host-Fingerprint: 209.85.210.42 mail-pz0-f42.google.com Received: from [209.85.210.42] ([209.85.210.42:38418] helo=mail-pz0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FA/16-25701-03A75ED4 for ; Tue, 31 May 2011 19:30:56 -0400 Received: by pzk37 with SMTP id 37so2423694pzk.29 for ; Tue, 31 May 2011 16:30:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:references:in-reply-to:mime-version :content-transfer-encoding:content-type:message-id:cc:x-mailer:from :subject:date:to; bh=JVRviI3g1llE6rJAWBUqgrLGvaNmpRLHLGmx3V/34qs=; b=Pnp9dj977LJ9Zo5L3looD53DYt5NE7oy0T6K6EeTZEcbYMHnXw5Yt2oC3Kri7v005b 3o4kTYhKjH04VK2t9r6nujNTyJwdo6sXq/FgvoLACHG1+2bALtGDsNZCwfoPDQoRr4Kg 6OYCbj5fBASKwV7KOSAwPbMbZK0Y6CDwUxkik= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; b=Ay0PfdmLygle8tH+ShaaN+FKTqNs2zKzVMNqhcjh39E09VJl5vZhppD+d7VW1QSodg 2a9zFpJtDAcIA1lq9KY9QqWpOEqcdSiHRDazd9xgnYyCNvoBaywwzRlZ3FlvrgsP4i6e zl5RH29eHDkZ+qO7FMjMPUvjR/snKebtPwhHY= Received: by 10.68.27.100 with SMTP id s4mr2859135pbg.491.1306884653501; Tue, 31 May 2011 16:30:53 -0700 (PDT) Received: from [10.59.20.95] ([166.205.142.133]) by mx.google.com with ESMTPS id p5sm445002pbd.76.2011.05.31.16.30.50 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 31 May 2011 16:30:52 -0700 (PDT) References: In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8J2) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-ID: <2F530F01-B722-44C7-A2DF-6390A6BDC9EA@gmail.com> Cc: "internals@lists.php.net" X-Mailer: iPhone Mail (8J2) Date: Tue, 31 May 2011 16:30:44 -0700 To: Marcel Esser Subject: Re: [PHP-DEV] Re: RFC: Short syntax for Arrays (redux) From: mike503@gmail.com (Michael Shadle) I've always considered json an awesome machine to machine interchange format= (the most efficient one) but not the easiest to read for configuration or m= anually defining anything. I see nothing wrong with the initial example. Has worked well for years. :) On May 31, 2011, at 3:43 PM, Marcel Esser wrote: > =46rom the perspective of someone that's just trying to get stuff done: >=20 > $packet =3D array('response' =3D> array('status' =3D> 1,'message' =3D> '')= ,'data' =3D> array('id' =3D> 1, 'username' =3D> 'john doe')); >=20 > $packet =3D ['response': ['status': 1, 'message': '', 'data': ['id': 1, 'u= sername': 'john doe'] ] ]; >=20 > The clarity improvement above is an exponential function that gets better a= nd better the more deeply nested you are. I don't know anyone that needs the= ability to support full JSON notation in PHP, but there are entirely too ma= ny deeply nested array() declarations with lots of tabs in our lives, especi= ally when we start working with things like JSON and/or Mongo or xyz. >=20 > That's all I wanted to say to this. >=20 > Cheers, > M. >=20 > -- > Marcel Esser > Vice President of Engineering, CROSCON > +1 (202) 470-6090 > marcel.esser@croscon.com >=20 > Before printing this e-mail, please consider the rainforest.