Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27741 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46597 invoked by uid 1010); 4 Feb 2007 14:58:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 46582 invoked from network); 4 Feb 2007 14:58:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Feb 2007 14:58:30 -0000 Authentication-Results: pb1.pair.com header.from=cschneid@cschneid.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=cschneid@cschneid.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain cschneid.com from 195.226.6.51 cause and error) X-PHP-List-Original-Sender: cschneid@cschneid.com X-Host-Fingerprint: 195.226.6.51 darkcity.gna.ch Linux 2.5 (sometimes 2.4) (4) Received: from [195.226.6.51] ([195.226.6.51:47206] helo=mail.gna.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 27/72-30772-594F5C54 for ; Sun, 04 Feb 2007 09:58:30 -0500 Received: from localhost (localhost [127.0.0.1]) by darkcity.gna.ch (Postfix) with ESMTP id EF3C8B9C78; Sun, 4 Feb 2007 15:58:26 +0100 (CET) Received: from unknown by localhost (amavisd-new, unix socket) id client-XX3ODT9U; Sun, 4 Feb 2007 15:58:24 +0100 (CET) Received: from [192.168.1.42] (217-162-171-242.dclient.hispeed.ch [217.162.171.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTP id 147D6B92DB; Sun, 4 Feb 2007 15:58:23 +0100 (CET) Message-ID: <45C5F48B.70207@cschneid.com> Date: Sun, 04 Feb 2007 15:58:19 +0100 User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) MIME-Version: 1.0 To: Hannes Magnusson CC: internals@lists.php.net References: <011701c7482d$a39f6910$6500a8c0@zend.2k> <7f3ed2c30702040630v86dc12ckfb5eca200722ecc6@mail.gmail.com> In-Reply-To: <7f3ed2c30702040630v86dc12ckfb5eca200722ecc6@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at gna.ch Subject: Re: [PHP-DEV] Syntactic improvement to array From: cschneid@cschneid.com (Christian Schneider) Hannes Magnusson wrote: > typeHinted([1 => [1 => []]]); // array(1 => array(1 => array())); IMHO the common case would benefit and your pathological example is unreadable both ways. Personally I'd reformat it to typeHinted([ 1 => [ 1 => [] ] ]); resp. typeHinted(array( 1 => array( 1 => array(), ) )); or something similar anyway to make them readable. Plus you could still use array() if you really wanted to. Regards, - Chris