Re: Re: Array syntax []

From: Date: Fri, 11 Jan 2008 12:01:50 +0000
Subject: Re: Re: Array syntax []
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-34701@lists.php.net to get a copy of this message
-1 On Jan 11, 2008, at 12:55 PM, "troels knak-nielsen" <troelskn@gmail.com> wrote:
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


« previous php.internals (#34701) next »