Andi Gutmans wrote:
So what I'm thinking of is:
array(1, 2, 3) == [1, 2, 3]

I like this syntax, more conscise but still clear (and well established in other languages by now).

Two more thoughts (but please don't kill Andi's proposal because of it, rather dismiss my comments instead ;-)):
- [$a, $b, $c] = ...    equivalent to    list($a, $b, $c) = ...
- func('foo' => $foo, 'bar' => $bar, ...) equivalent to func(array('foo' => $foo, 'bar' => $bar, ...), see http://cschneid.com/php/ for more info

Regards,
- Chris

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

Reply via email to