[PHP-DEV] Namespace separator constant

2010-08-10 Thread Christian Kaps
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. Greetings, Christian

Re: [PHP-DEV] Namespace separator constant

2010-08-10 Thread Daniel Egeberg
On Tue, Aug 10, 2010 at 21:56, Christian Kaps christian.k...@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

Re: [PHP-DEV] Namespace separator constant

2010-08-10 Thread Ferenc Kovacs
On Tue, Aug 10, 2010 at 9:59 PM, Daniel Egeberg daniel.egeb...@gmail.comwrote: On Tue, Aug 10, 2010 at 21:56, Christian Kaps christian.k...@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

Re: [PHP-DEV] Namespace separator constant

2010-08-10 Thread Brian Moon
On 8/10/10 3:03 PM, Ferenc Kovacs wrote: like DIRECTORY_SEPARATOR I guess Tyrael but, DIRECTORY_SEPARATOR is system dependent. The namespace separator is not. It is is always \. -- Brian. http://brian.moonspot.net/ -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] Namespace separator constant

2010-08-10 Thread Christian Kaps
Am 10.08.2010 22:07, schrieb Brian Moon: On 8/10/10 3:03 PM, Ferenc Kovacs wrote: like DIRECTORY_SEPARATOR I guess Tyrael but, DIRECTORY_SEPARATOR is system dependent. The namespace separator is not. It is is always \. OK. This is clear. -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] Namespace separator constant

2010-08-10 Thread Kalle Sommer Nielsen
Hello Christian 2010/8/10 Christian Kaps christian.k...@mohiva.com:  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