Re: [PHP] When to use namespaces

2010-03-02 Thread Adam Richardson
Thanks, Richard, I wasn't aware of that function. Another nice option. On Tue, Mar 2, 2010 at 6:18 AM, Richard Quadling wrote: > On 1 March 2010 19:34, Adam Richardson wrote: > > I use namespaces within my web framework because the framework takes a > more > > functional approach (no objects ar

Re: [PHP] When to use namespaces

2010-03-02 Thread Richard Quadling
On 1 March 2010 19:34, Adam Richardson wrote: > I use namespaces within my web framework because the framework takes a more > functional approach (no objects are created within the framework other than > from existing classes such as PDO or Exception, immutability is promoted, > etc.), and in this

Re: [PHP] When to use namespaces

2010-03-01 Thread Adam Richardson
I use namespaces within my web framework because the framework takes a more functional approach (no objects are created within the framework other than from existing classes such as PDO or Exception, immutability is promoted, etc.), and in this context, the namespaces felt quite natural for breakin

Re: [PHP] When to use namespaces

2010-03-01 Thread tedd
At 5:14 PM +0100 3/1/10, Auke van Slooten wrote: Hi everyone, I'm doing a small hobby project to better my understanding of php5, specifically php5.3 and I'm wondering when a namespaced project is better and when it is better to simply use a prefix to all class names. I've been trying to ge

Re: [PHP] When to use namespaces

2010-03-01 Thread Richard Quadling
On 1 March 2010 16:14, Auke van Slooten wrote: > Hi everyone, > > I'm doing a small hobby project to better my understanding of php5, > specifically php5.3 and I'm wondering when a namespaced project is better > and when it is better to simply use a prefix to all class names. > > I've been trying

Re: [PHP] When to use namespaces

2010-03-01 Thread Ashley Sheridan
On Mon, 2010-03-01 at 17:14 +0100, Auke van Slooten wrote: > Hi everyone, > > I'm doing a small hobby project to better my understanding of php5, > specifically php5.3 and I'm wondering when a namespaced project is > better and when it is better to simply use a prefix to all class names. > > I

[PHP] When to use namespaces

2010-03-01 Thread Auke van Slooten
Hi everyone, I'm doing a small hobby project to better my understanding of php5, specifically php5.3 and I'm wondering when a namespaced project is better and when it is better to simply use a prefix to all class names. I've been trying to get a feeling for what is considered the best practi