Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52685 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54710 invoked from network); 1 Jun 2011 16:32:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2011 16:32:27 -0000 Authentication-Results: pb1.pair.com header.from=hermanradtke@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=hermanradtke@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: hermanradtke@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:49733] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/A9-32367-89966ED4 for ; Wed, 01 Jun 2011 12:32:24 -0400 Received: by vxb40 with SMTP id 40so4720293vxb.29 for ; Wed, 01 Jun 2011 09:32:22 -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:content-type; bh=2Cn6iV4F8qbOGoNbuQ7G0nvvEnEHy3RjutCyh8bt4kU=; b=fyzdExw80uk3MZCcIknonqPoFmRVuUeKD1L1bUFTWhFrPxD6WsEIXSfRUNKJWVwWMT tVdmpVrDzhhHeKooNZnqyt95wCfTM6ZLXUVvm3SeNjOettdF4QsSB2OfLld9X9fJz9+l xBuFd1nK1DmSErDiDSTQdpOq+4DhztKpWdSNQ= 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 :content-type; b=b5sCMegruJvLFvCJ/2rDK46Jmn2ebP4vE2BXYq5HjvzPz2Iyd+twSHeUNWDl5ZmojY XsHreBgXoqix0YthqXhew7V2t14uaL9OU9GSkDz6vAUGZNyhgfsmq+VERzrUT3CJhF26 P7IrJs39C3rmWGV7I6bgRGVMVDF8T2wixS5No= MIME-Version: 1.0 Received: by 10.52.179.131 with SMTP id dg3mr1071743vdc.9.1306945940672; Wed, 01 Jun 2011 09:32:20 -0700 (PDT) Received: by 10.52.160.6 with HTTP; Wed, 1 Jun 2011 09:32:20 -0700 (PDT) In-Reply-To: References: <3C4EC449-1013-4ED6-9113-F37FAEBD0566@seancoates.com> Date: Wed, 1 Jun 2011 09:32:20 -0700 Message-ID: To: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: RFC: Short syntax for Arrays (redux) From: hermanradtke@gmail.com (Herman Radtke) >> Here's an actual snippet from my production code (which interfaces with ElasticSearch): >> 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 ;-) For gits and shiggles I converted it to short array syntax. I structure my arrays much like Sean does and I was of the opinion that a shorter syntax would not improve the readability much. I have to admit I do like the way the short syntax with the : separator looks, though the => separator is not bad on the eyes either. Converted snippets: Using => separator: http://paste.roguecoders.com/p/8c653602dee96b87f566a29b78aa4daa.html Using : (JSON) separator: http://paste.roguecoders.com/p/b117894e85b6f980b8390bc2828ca227.html -- Herman Radtke hermanradtke@gmail.com | http://hermanradtke.com