Re: Re: Syntactic improvement to array
| From: | Andrei Zmievski | Date: | Mon, 05 Feb 2007 18:06:36 +0000 |
| Subject: | Re: Re: Syntactic improvement to array | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-27815@lists.php.net to get a copy of this message | ||
On Feb 4, 2007, at 8:52 PM, Richard Lynch wrote:
Ewwwwwwww! So now we have an invisible operator with a magical symbol '[' which *sometimes* means create an array, but *sometimes* means to de-construct an array into individual variables? That's just disgusting, imho. -1 !!!The way I view [] is that it creates an array "context". When the context is an RHS, it instantiates an array. When it's an LHS, the context deconstructs the array. -Andrei