On Sun, February 4, 2007 8:23 am, Christian Schneider wrote: > 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) = ...
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 !!! > - func('foo' => $foo, 'bar' => $bar, ...) equivalent to > func(array('foo' => $foo, 'bar' => $bar, ...), see > http://cschneid.com/php/ for more info Again, saving 5 characters just to confuse the hell out of idiots like me does not seem like a "win" for PHP. :-v -1 -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php