Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37958 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87949 invoked from network); 28 May 2008 09:58:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 May 2008 09:58:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=lokrain@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=lokrain@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.200.168 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: lokrain@gmail.com X-Host-Fingerprint: 209.85.200.168 wf-out-1314.google.com Received: from [209.85.200.168] ([209.85.200.168:1649] helo=wf-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/CB-15519-7CC2D384 for ; Wed, 28 May 2008 05:58:31 -0400 Received: by wf-out-1314.google.com with SMTP id 26so2540393wfd.26 for ; Wed, 28 May 2008 02:58:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=YyFzwAqTHX/D3DnPdkw8IoUNGOJSxOyoYSUHTnZDVdg=; b=h8G5ty328lhQf3MaaTGzEebSYI3HqqZ3KeBgBz6gGAI4XGRTT7S81al7vvrCkxExAcDRaRBJS2puSkjihZIisXccJ+6TmP1NUWmQ3SOriNfs5iFmzVE6MR2wU4y/oWcpesPmsNGCmZujfs+GheV4coEn8aGuvEDXjnK8UU5ImEg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=sH0L2JillB1yThlMLh6T5GOkDRTjKpv3C0Z7v5afe4N5Tpugzb11GM906CWZmhijGiL6DHNzOBr+/NdmGY+/LhmgkJDcD4j41nEaIG7xKpSTAO2QDhQGAw8nvchJEaGCzN2T1Tbbr80nWIPjz0dnbS34XAylUW6Kvk6mNIhV++s= Received: by 10.142.187.2 with SMTP id k2mr964039wff.8.1211968708676; Wed, 28 May 2008 02:58:28 -0700 (PDT) Received: by 10.142.255.15 with HTTP; Wed, 28 May 2008 02:58:28 -0700 (PDT) Message-ID: <345fd5cd0805280258s10b811dcn4c4c298e50c78534@mail.gmail.com> Date: Wed, 28 May 2008 12:58:28 +0300 To: internals@lists.php.net In-Reply-To: <5ad2dbbf0805280235v6194fd76wfd7430702ddae795@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7247_17717440.1211968708666" References: <0412F6FE505049F7901EAB8C61774839@pc> <483CFF33.6060302@lerdorf.com> <483D05B6.30804@daylessday.org> <200805281032.49016.et@php.net> <345fd5cd0805280147q73b46807vc9b6ad0778a96f9@mail.gmail.com> <5ad2dbbf0805280235v6194fd76wfd7430702ddae795@mail.gmail.com> Subject: Re: [PHP-DEV] Re: Short syntax for array literals [...] From: lokrain@gmail.com (Lokrain) ------=_Part_7247_17717440.1211968708666 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello again, renderSomething(array('exclude' => array('a', 'b', 'c'), 'include' => array('d', 'e', 'f'))); vs: renderSomething(['exclude' => ['a', 'b', 'c'], 'include' => ['d', 'e', 'f']]); Your version is more readable but try this one: renderSomething( array( 'exclude' => array('a', 'b', 'c'), 'include' => array('d', 'e', 'f') ) ); Or even break array('a','b','c') and array('d', 'e', 'f') in more lines. This will become far more readable, with proper names and values. This is the real life case for me. Regards, Dimitar ------=_Part_7247_17717440.1211968708666--