George Schlossnagle wrote:

On Nov 5, 2003, at 1:29 PM, Marco Tabini wrote:


$a = [1,2,$b[11]] is semantically inconsistent.


How so? Is


I think I've already explained why.


foo(array(1,2));

semantically inconsistent? On one hand () is used with a language construct (array()), whereas in the other context it indicates arguments to a function. I think that is what he meant by 'grouping' and 'application'.


Actually, I think it meant something else. In any case, semantically you can still think of array() as a function (until you throw in key declarations, of course ;) )


Similar tokens have different syntactical meaning all over the language. Compare '<<' and '<<<'. To me that is no diffent that <variable>[] and [].

Again, that's not a good reason to introduce more.



Mt.



George (still -1, but because it makes for unmaintainable code, not because it's hard to read)



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



Reply via email to