Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52710 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28863 invoked from network); 1 Jun 2011 22:09:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2011 22:09:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=sean@seancoates.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sean@seancoates.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain seancoates.com from 64.15.79.181 cause and error) X-PHP-List-Original-Sender: sean@seancoates.com X-Host-Fingerprint: 64.15.79.181 iconoclast.caedmon.net Received: from [64.15.79.181] ([64.15.79.181:44690] helo=iconoclast.caedmon.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/24-32367-888B6ED4 for ; Wed, 01 Jun 2011 18:09:13 -0400 Received: from localhost (localhost [127.0.0.1]) by iconoclast.caedmon.net (Postfix) with ESMTP id C715E784057; Wed, 1 Jun 2011 18:10:01 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at iconoclast.caedmon.net Received: from iconoclast.caedmon.net ([127.0.0.1]) by localhost (iconoclast.caedmon.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Cb93xn4Q91lV; Wed, 1 Jun 2011 18:09:59 -0400 (EDT) Received: from [192.168.145.200] (modemcable050.248-178-173.mc.videotron.ca [173.178.248.50]) by iconoclast.caedmon.net (Postfix) with ESMTPSA id 6230B784052; Wed, 1 Jun 2011 18:09:59 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=windows-1252 In-Reply-To: Date: Wed, 1 Jun 2011 18:09:05 -0400 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <4DE5368A.6050603@moonspot.net> <8BEEEE49-8DA3-4634-BF9C-120F7A15B613@roshambo.org> To: Anthony Ferrara X-Mailer: Apple Mail (2.1084) Subject: Re: [PHP-DEV] RFC: Short syntax for Arrays (redux) From: sean@seancoates.com (Sean Coates) > Now, the only reason I would personally support the array shortcut is > if it was an implementation of JSON. I know that's not on the table > here I don't think anything is officially off the table, unless we forego = discussion. My application is largely JSON-powered. We pass data from back- to = front-end via JSON, we interact with MongoDB via the extension (which is = an altered JSON-like protocol (arrays instead of objects), but would be = a lot more fluent with actual objects=97they're just too hard to make in = current PHP), and we interface with ElasticSearch. The paste I linked = earlier is our primary ElasticSearch query. The benefits of first-class JSON are important and wide-reaching; = especially when interacting with systems like the ones I've mentioned. = There's a huge amount of value in being able to copy JSON out of PHP and = into e.g. CURL to make a query to ElasticSearch without worrying that = I've accidentally nested one level too deep or shallow, or accidentally = mistranslating my arrays into JSON. This is not about saving five characters every time I type array(), it's = about making my systems all work together in a way that's a little less = abstracted, and a lot less prone to error. S=