Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52792 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70561 invoked from network); 2 Jun 2011 16:04:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jun 2011 16:04:50 -0000 Authentication-Results: pb1.pair.com header.from=martinscotta@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=martinscotta@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: martinscotta@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:64169] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/42-56626-D94B7ED4 for ; Thu, 02 Jun 2011 12:04:48 -0400 Received: by vxb40 with SMTP id 40so834621vxb.29 for ; Thu, 02 Jun 2011 09:04:42 -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:date :message-id:subject:from:to:cc:content-type; bh=r1wyRw1M096OsybykPaFkpEl5KUUhDF8ViELgDeEyis=; b=fwiBncLz3Y2zbdznaYIhxNFY+2/Z6Au6QRisz+iyCyiwX60ELQJWl0kQzEEI9UUBZ6 F/Nmg4YHuC85b88DPhzxl8xdT0fDv4OUlonKj+v23KKlHm/b5zYokhqy8+Iuhgw0vahy 2n43LsK5x1iVBH5dcjZCYUnadlzFqtUy09Eak= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=HzsOsFBUximDll9ugjY202kh/V5ovUoA4NEkdhXY5is7ZWUwWs71nYRAIl8HOdXlxt /BVvOcpDr4ktcr7WpVOtig1X+WP0axqz3EyHSfQUMoVqHk5pWGbTvkDE4l4mw0tmtcWp JGcu3HvUJAGfd1qFMV5/7ZIeMejoZG0YdSWM8= MIME-Version: 1.0 Received: by 10.220.199.73 with SMTP id er9mr226240vcb.83.1307030681811; Thu, 02 Jun 2011 09:04:41 -0700 (PDT) Received: by 10.220.192.129 with HTTP; Thu, 2 Jun 2011 09:04:41 -0700 (PDT) In-Reply-To: References: <4DE5368A.6050603@moonspot.net> <8BEEEE49-8DA3-4634-BF9C-120F7A15B613@roshambo.org> Date: Thu, 2 Jun 2011 13:04:41 -0300 Message-ID: To: Sean Coates Cc: Anthony Ferrara , PHP internals Content-Type: multipart/alternative; boundary=90e6ba53b0707ffbc404a4bccb2b Subject: Re: [PHP-DEV] RFC: Short syntax for Arrays (redux) From: martinscotta@gmail.com (Martin Scotta) --90e6ba53b0707ffbc404a4bccb2b Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Could we first go out with fully JSON compatible version for 5.4? and then later decide the =3D> stuff based on how that worked. Native JSON is a big stuff for userland, and I'm pretty sure it will bring = a hole of core version upgrades. Martin Scotta On Wed, Jun 1, 2011 at 7:09 PM, Sean Coates wrote: > > 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 lo= t > more fluent with actual objects=97they're just too hard to make in curren= t > 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'v= e > 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 > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --90e6ba53b0707ffbc404a4bccb2b--