Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52679 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24342 invoked from network); 1 Jun 2011 14:30:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2011 14:30:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=ilia@prohost.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ilia@prohost.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain prohost.org designates 209.85.214.42 as permitted sender) X-PHP-List-Original-Sender: ilia@prohost.org X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:62862] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E1/54-32367-B0D46ED4 for ; Wed, 01 Jun 2011 10:30:36 -0400 Received: by bwz18 with SMTP id 18so103571bwz.29 for ; Wed, 01 Jun 2011 07:30:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.46.161 with SMTP id j33mr6707337bkf.212.1306938632006; Wed, 01 Jun 2011 07:30:32 -0700 (PDT) Received: by 10.204.72.3 with HTTP; Wed, 1 Jun 2011 07:30:31 -0700 (PDT) In-Reply-To: <3C4EC449-1013-4ED6-9113-F37FAEBD0566@seancoates.com> References: <3C4EC449-1013-4ED6-9113-F37FAEBD0566@seancoates.com> Date: Wed, 1 Jun 2011 16:30:31 +0200 Message-ID: To: Sean Coates Cc: Derick Rethans , Gustavo Lopes , PHP internals Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: RFC: Short syntax for Arrays (redux) From: ilia@prohost.org (Ilia Alshanetsky) On Wed, Jun 1, 2011 at 4:27 PM, Sean Coates wrote: > This discussion seems to lack real-world examples=85 > > Derick wrote: >> I'm still -1 on it. It makes absolutely unreadable code (yes, also in >> JavaScript with f.e. MongoDB). > > > Here's an actual snippet from my production code (which interfaces with E= lasticSearch): > http://paste.roguecoders.com/p/0747f2363c228a09e0ddd6f8ec52f2e8.html > > If you consider this readable, you're fare more literate than I will ever= be (-: Using JSON syntax would only "maybe" make it more readable, and then only because you would probably not format it on so many lines ;-)