Re: RFC: Dropping Namespace
| From: | Steph Fox | Date: | Tue, 04 Dec 2007 22:41:44 +0000 |
| Subject: | Re: RFC: Dropping Namespace | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-33697@lists.php.net to get a copy of this message | ||
Hi D,
extension (DateTime, DateTimeZone). However introducing the new class DateTimeSpan might break people's code that do things like: <?php use myNamespace::DateTimeZone as DateTimeZone; ?>Typo? I guess you meant 'DateTimeSpan' to be in there somewhere... This is I think the biggest problem with the implementation, that new internal classes can still break userland code. The problem of single-file namespacing is only a problem because of the performance implications for those who bundle their includes, and it _should_ be possible to find a good way to resolve that. I don't really see a problem with the 'use only at the head of the file' thing (although I know others do); in fact I prefer it, because it makes for an easier upgrade path. Can I just ask one thing? If namespace support is once again pulled before it sees the light of a release, can we _please_ document exactly what the problems were, loud and clear, and put the document somewhere people are likely to see it? Thanks, - Steph