Re: namespace separator and whining
| From: | Rodrigo Saboya | Date: | Tue, 04 Nov 2008 18:05:52 +0000 |
| Subject: | Re: namespace separator and whining | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41658@lists.php.net to get a copy of this message | ||
Steph Fox wrote:
I don't think it's going to prevent writing portable code, at least for serious framework developers, because they'll prefix their classes anyway. But I think it's dangerous and will cause unexpected behavior for the average user. This was discussed before, I'm with Stas: Global classes cannot be overriden unless explicitly prefixed. -- Rodrigo SaboyaIT will break the code from everybody who doesn'T expect such a flag exists and the average application user won't know and jsut see errors which "randomly" occur.Erm, how is that going to happen? This is basically a tighter setting that can *optionally* be used and should *always* be used in development. It would be documented loud and clear in the PHP manual, where people go to find out about new/different-from-Java language elements. There's a *possible* slowdown and *possible* conflicts if you never use it, but the people most likely to never use it are those least likely to be loading lots of third-party OO code in the first place.No ini settings for basic behavior.Ah well we might as well throw out E_STRICT too! - Steph