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) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php