Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53086 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96748 invoked from network); 6 Jun 2011 21:50:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jun 2011 21:50:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=martinscotta@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=martinscotta@gmail.com; sender-id=pass; domainkeys=bad 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:34688] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 25/13-23189-5BB4DED4 for ; Mon, 06 Jun 2011 17:50:46 -0400 Received: by vxb40 with SMTP id 40so3527118vxb.29 for ; Mon, 06 Jun 2011 14:50:43 -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=sWTcVxthEyrUc+vbxwOfiFc3rJI6kzX7h8QtVof+pA8=; b=VoWxoFsAM0gWbXU+IBFn6wtDoI/4WrVw1ab94ku0R7tr5Q7UO+9SUV57g5U/kyZGkv /lyjwxNySbcW40k0pd34QzRmQjw3bUrEg1fEkrvCSUrUiLl5dwn/FwL4lkqK4s8kfYMa Qoz2aUulAmtFgdP4oTbt4Ptol+E7J4p5Lb9D0= 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=TQHGWweew41jkOSUd3RU9yxZ0Gz7K1V8t7RZxA4CP4JW8LMhHuuF1S1SPuvo9Uf3FK sGr3ASWD+On5T5ZLrrL4iIBp0TCUOQSPhLWkKR3C7ymIJbz0AkXbZwcuY9WZZGBQu/Vl JKoDACSwrwv3XZMG8//pMnt11+3sDMYlZY1Y8= MIME-Version: 1.0 Received: by 10.220.199.73 with SMTP id er9mr632457vcb.83.1307397042795; Mon, 06 Jun 2011 14:50:42 -0700 (PDT) Received: by 10.220.192.129 with HTTP; Mon, 6 Jun 2011 14:50:42 -0700 (PDT) In-Reply-To: <80.C8.23189.F661DED4@pb1.pair.com> References: <4DE5368A.6050603@moonspot.net> <8BEEEE49-8DA3-4634-BF9C-120F7A15B613@roshambo.org> <80.C8.23189.F661DED4@pb1.pair.com> Date: Mon, 6 Jun 2011 18:50:42 -0300 Message-ID: To: "Matthew Weier O'Phinney" Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=90e6ba53b07050f51204a5121828 Subject: Re: [PHP-DEV] RFC: Short syntax for Arrays (redux) From: martinscotta@gmail.com (Martin Scotta) --90e6ba53b07050f51204a5121828 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Martin Scotta On Mon, Jun 6, 2011 at 3:03 PM, Matthew Weier O'Phinney < weierophinney@php.net> wrote: > On 2011-06-01, 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 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. > > *applause* > > Well, said, Sean. Basically, this discussion should be likened to > adding SimpleXML to PHP -- providing tools that make interoperability > with other systems or languages simpler. > I don't believe this discution will lead to something. 1) Core devs don't want to change the langt. ...and linked with the "modern" bundle thread... 2) if you get this feature in the php version --let's say-- 5.4, it will no= t be installed on your shared hosting. equals) feature not available > > -- > Matthew Weier O'Phinney > Project Lead | matthew@zend.com > Zend Framework | http://framework.zend.com/ > PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --90e6ba53b07050f51204a5121828--