Re: Namespace separator constant

From: Date: Tue, 10 Aug 2010 20:03:10 +0000
Subject: Re: Namespace separator constant
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-49278@lists.php.net to get a copy of this message
On Tue, Aug 10, 2010 at 9:59 PM, Daniel Egeberg <daniel.egeberg@gmail.com>wrote: > 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 > > like DIRECTORY_SEPARATOR I guess Tyrael

« previous php.internals (#49278) next »