Re: Why there's no namespace keyword in php5?
- From: "Weird-beard" <atcevik@xxxxxxxxx>
- Date: 18 Oct 2005 01:48:00 -0700
another benefit of being able to use namespaces is providing another
layer of encapsulation, defining visibility for classes, hiding
unneeded info from the namespaces different than the current.
I think that's more important than the name collision. About the
naming,using frameworks or 3rd party modules etc. results in name
collisions most of the time, and working as a team may result in weird
names.
Eg. Namespace A
{
private class B
{}
public Class c
}
Namespace D
{
private class E
{
instC=new C(); // OK
instB=new B(); // Not Accessible
}
}
.
- References:
- Why there's no namespace keyword in php5?
- From: Yarco
- Re: Why there's no namespace keyword in php5?
- From: Tony Marston
- Why there's no namespace keyword in php5?
- Prev by Date: Re: Newbie: show page break in records
- Next by Date: Re: Database connection
- Previous by thread: Re: Why there's no namespace keyword in php5?
- Next by thread: php and freetds
- Index(es):
Relevant Pages
|