Re: Proposal: Array syntax
| From: | George Schlossnagle | Date: | Wed, 05 Nov 2003 16:58:43 +0000 |
| Subject: | Re: Proposal: Array syntax | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-5231@lists.php.net to get a copy of this message | ||
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. George