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

From: Date: Sat, 26 Nov 2005 13:28:49 +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 13 14 15 16 17 18  Groups: php.internals 
Request: Send a blank email to internals+get-20544@lists.php.net to get a copy of this message
On Sat, 2005-11-26 at 13:38 +0100, Marcus Boerger wrote: > Hello Christian, > > Saturday, November 26, 2005, 1:42:07 AM, you wrote: > > PS: I'd rather have : for namespaces with the whitespace restriction for > > ? a:x : b:y than the confusing (escaping characters outside of a > > string?) backslash. > > And kill trillions of php scripts, how funny. Think before writing. It may well be impractical to code for all I know, but surely this is not technically impossible? As of now I really don't think ? a:x:b:y works anyway, so what is going to be broken by requiring ? a:x : b:y when the ternary operator is used with namespaced expressions? I do think just about anything is preferable to \ as namespace separator. Be imaginative; it can be two characters, like :>. Unless that has some collision with the > operator that I cannot see, or there is no two character separator that is less generally undesirable than \. I think three character separators would be taking the search too far, though :) Matt

« previous php.internals (#20544) next »