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.
Except that the word array provides a nice break *and* it does not create confusion in the use of a language construct (see my previous msgs).
Cheers,
Marco
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php