Marcus Boerger wrote:
here again namespaces would be perfect. Given a lib that doesn't prefix you'd simply do: namespace LibNameHere { reqire "some_lib_include"; } and be done...wohooo :-)
Only if newly introduced PHP core classes use a namespace too. You'll have to use PHP\Date (or the like) if you want to avoid conflicts in existing code. Plus maybe something like "import PHP\Date as Date" or something along these lines if you want to avoid PHP\ in newly written code where you know that there is no Date class yet.
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.
- Chris -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php