That would be very handy. As I code frequently JavaScript and ActionScript, I 
will use this feature
with pleasure. +2 for me :D The array(), especially for more-than-1 dimensional 
arrays is very
cumbersome.

Best Regards,
Ivailo Karamanolev

On Monday, February 5, 2007, 12:53:44 PM, LAUPRETRE François<[EMAIL PROTECTED]> 
wrote:
>> From: Christian Schneider [mailto:[EMAIL PROTECTED] 

>> What's also beautiful about [] IMHO is the symmetry of the syntax, 
>> list() and array() are asymmetrical which I always found inferior.

> Agree. +1 for me, especially for this reason, even after reading Greg's 
> examples :) IMO, it is
> more important to provide an elegant alternative to list() than a new syntax 
> for array().

>> 
>> >> - func('foo' => $foo, 'bar' => $bar, ...)   equivalent to
>> >> func(array('foo' => $foo, 'bar' => $bar, ...)

> Argh! Reading such a line, I think of named parameters, not an array. Ugly, 
> confusing. -1 for
> me. Definitely.

> May I add that, as I regularly write multi-layer arrays as SOAP return 
> values, I personnaly
> like this proposed syntax.

> Francois
>  

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to