Re: Proposal: Array syntax

From: Date: Wed, 05 Nov 2003 17:20:56 +0000
Subject: Re: Proposal: Array syntax
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-5243@lists.php.net to get a copy of this message
At 11:58 AM 11/5/2003 -0500, George Schlossnagle wrote:
On Nov 5, 2003, at 11:52 AM, Marco Tabini wrote:
But isn't there a big difference between an assignment and a reference? I, for one, think that language constructs should be as univocal as possible in order to minimize confusion, lest we end up having to read something like: $a = [[1,2,3],[1=>[1,3,2,2], "a"=>[[1,2,3,4],4,[1,2]]]; I don't know about you, but I can't even begin to count the brackets in there... :-)
is that any less clear than $a = array(array(1,2,3), array(1 => array(1,3,2,2), array("a" => array(array(1,2,3,4), 4, array(1,2))); Both examples can be made crystal clear with appropriate whitespace.
I agree with that. Andi

« previous php.internals (#5243) next »