Re: Re: Array syntax []

From: Date: Fri, 11 Jan 2008 11:55:46 +0000
Subject: Re: Re: Array syntax []
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-34699@lists.php.net to get a copy of this message
One problem, I have with this proposal is, that it isn't much like javascript anyway. In javascript, there is a distinction between array and hashmap, with different syntaxes. If anything, the syntax should probably be {'foo' => 1, 'bar' => 2}. I don't think the added noise is worth it though, since we already have a syntax, which has worked for a decade. Having two different syntaxes, for the exact same thing, isn't that great an idea. All IMHO, of course. -1 for those counting. -- troels (Which is in fact pronounced trolls)

« previous php.internals (#34699) next »