[Solar-talk] Namespaces
Richard Thomas
lists at cyberlot.net
Fri Feb 29 15:23:40 CST 2008
Isn't that going a little overboard, using name spaces just to use name
spaces is a little much.
The idea of name spacing is to prevent collision of names, once you get
past Solar:: your just making a mess..
Antti Holvikari wrote:
> On Fri, Feb 29, 2008 at 11:16 PM, Paul M Jones <pmjones at paul-m-jones.com> wrote:
>> Forwarding to create a new thread. ;-)
>>
>> Begin forwarded message:
>>
>> > From: Jeff Moore <jeff at mashery.com>
>> > Date: February 29, 2008 15:08:40 CST
>> > To: solar-talk at lists.solarphp.com
>> > Subject: Re: [Solar-talk] Toward a Standard Project Structure
>> > Reply-To: solar-talk at lists.solarphp.com
>> >
>> > Hi,
>> >
>> > I just wanted to point out that the current autoloading mapping
>> > might need to be reconsidered in light of namespaces.
>> >
>> > Does the Solar class belong inside a Solar namespace? If so, the
>> > file (Solar.php) would most likely go inside the Solar directory and
>> > Solar::start() becomes Solar::Solar::start();
>> >
>> > Consider Solar_View. With namespaces, will this become Solar::View?
>> > Now Consider Solar_View_Helper. Is this:
>> >
>> > Solar_View::Helper or Solar::View_Helper?
>
> Hope I'm not missing something here but why not Solar::View::Helper?
>
> I mean, why not just replace underscores with colons? Solar.php gets
> it's own namespace 'Solar'.
>
More information about the Solar-talk
mailing list