Re: Namespace separator constant

From: Date: Tue, 10 Aug 2010 19:59:51 +0000
Subject: Re: Namespace separator constant
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-49277@lists.php.net to get a copy of this message
On Tue, Aug 10, 2010 at 21:56, Christian Kaps <christian.kaps@mohiva.com> wrote: >  Hi, > > is there any reason why no namespace separator constant exists in PHP. I > have many cases where I concatenate strings to a namespace. This ends up > with many class constants like const NS_SEPARATOR = '\\'. A default PHP > constant would be a better way to handle such cases. It is already constant (i.e. it's always a backslash). What do you need a constant for? It's not system nor configuration dependent. -- Daniel Egeberg

« previous php.internals (#49277) next »