Hi Chris,

Christian Schneider wrote:

From Jessie's statements I was assuming that ONLY in the ternary case you would need whitespaces/parens to disambiguate the expression. That would break way less PHP scripts than, say, a core Date class ;-)


Yes, this is true, but still, I wouldn't be surprised if many people use code such as "$x = $y?CONSTANT1:CONSTANT2;" right now, so by introducing this change, which should have absolutely no BC issues at all, you may potentially break scripts, which is something I'd rather not do. I might have a solution for this though, just give me some time to implement. For now, we can forget about namespace constants (they're not critical, anyways).


Regards,

Jessie

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

Reply via email to