Rasmus Lerdorf wrote:
$x = $y ? foo:bar : baz:stupid;
Forcing whitespace here isn't an option. It is completely inconsistent
with the rest of PHP.
-Rasmus
This is only one isolated case, though, and even then, it only happens
with constants (classes don't work anyways here and don't make sense,
and functions require the parentheses for the call).
We have two options here:
1) Do not allow constants in namespaces, just stick to functions and
classes.
2) Forget about this inconsistency.
I understand your point of view, but it seems crazy to me to use "\", an
operator that makes absolutely no sense at all and will be confusing for
most users, just because of _one_ isolated case such as this. I
personally choose option 2, and I think the many users who are clamoring
for namespaces would agree also.
Regards,
Jessie
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php