Hi! > One of the shortcomings of namespaced functions in PHP is that it is > not possible to import them as you can do with classes and > namespaces. For code that is not in the same namespace as the > function, you must always reference at least one part of the > namespace in order to call it.
What's wrong with referencing one part of it? It can be as short as two characters, and an an added bonus you won't suddenly have your strlen overridden by somebody without you knowing it. Functions live in global space, and there's a real lot of them, that's why importing them wasn't considered a good idea - it's going back to the same problem we were escaping with namespaces. Saving two keystrokes while sacrificing clarity is usually not the best idea. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php