Re: Proposal: Array syntax

From: Date: Wed, 05 Nov 2003 17:54:34 +0000
Subject: Re: Proposal: Array syntax
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-5253@lists.php.net to get a copy of this message
On Wed, 5 Nov 2003, Andi Gutmans wrote: >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. So it's gonna be the pythonized version? ie. if there is no appropriate whitespace -> parse error? :) --Jani

« previous php.internals (#5253) next »