Re: [PHP] the class as a namespace
- Date: Thu, 15 May 2008 13:39:22 +0200
- From: Iv Ray <pobox@xxxxxxxxxxxxx>
- Subject: Re: [PHP] the class as a namespace
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php