I guess we'll have to agree to disagree
$a = [1,2,$b[11]] is semantically inconsistent.

Yeah, I agree to disagree on that one, too :)


Actually, do you realize that you use () both for "grouping" and for application? I can't see anything wrong with using square brackets for array element access and array creation, to be honest.


Actually, no, I don't. I'm not sure what "grouping" and "application" mean...

$a*(1+2) vs. $a(1+2)


"Grouping" (not really a good term, I'm sorry) in the sense of determining the order of evaluation.

"Application" being normal function application (function call).

Cheers,
Michael

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



Reply via email to