Re: Re: PHP 5.1 (Or How to break tousands of apps out there)

From: Date: Fri, 25 Nov 2005 22:29:13 +0000
Subject: Re: Re: PHP 5.1 (Or How to break tousands of apps out there)
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-20461@lists.php.net to get a copy of this message
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

« previous php.internals (#20461) next »