Re: Proposal: Array syntax

From: Date: Wed, 05 Nov 2003 18:37:07 +0000
Subject: Re: Proposal: Array syntax
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-5262@lists.php.net to get a copy of this message
On Nov 5, 2003, at 12:54 PM, Jani Taskinen wrote:
On Wed, 5 Nov 2003, Andi Gutmans wrote:
At 11:58 AM 11/5/2003 -0500, George Schlossnagle wrote:
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? :)
The point was that the example was unreadable even if translated directly into syntactical PHP. To make it 'readable', you need to add whitespace, which would in fact make either syntax quite readable. Anything can look like crap if you want it to. George

« previous php.internals (#5262) next »