Re: the class as a namespace
| From: | Iv Ray | Date: | Thu, 15 May 2008 11:39:22 +0000 |
| Subject: | Re: the class as a namespace | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-274364@lists.php.net to get a copy of this message | ||
Richard Heyes wrote:
That's a common use of static classes. Eg: HTTP::Redirect($url); In fact this (from the article I've read) is exactly how namespaces will look like. So in the above example, HTTP could be either a namespace or a class.Right. Namespaces do look similar. And PEAR employs similarly looking packages naming convention. So it seems the static classes (which are actually simply classes with static methods/properties, right) are the best "namespaces like" way, until the namespaces arrive. Thanks for your note, Iv