Re: Namespace issues

From: Date: Sat, 18 Oct 2008 23:49:33 +0000
Subject: Re: Namespace issues
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-41269@lists.php.net to get a copy of this message
Marcus Boerger wrote:
Hello all, Greg was so kind to give me part of his awesome upcoming Pyrus code. He actually has it running with both ':::' and '\' as namespace separators. So I thought I'd help out a tiny tiny bit by giving you all the choice of having a look at actual working code: http://php.net/~helly/triplecolon.html http://php.net/~helly/triplecolon-colored.html http://php.net/~helly/backslash-colored.html http://php.net/~helly/backslash.html marcus
Thanks massively! Those code samples make it vastly clear just how many times we'll all be calling functions in the default namespace - and I for one don't fancy typing ::: for every function or normal PHP class I ever use! + \strpos() etc. just looks and types natural to me. I realise we wouldn't /have/ to type \ or ::: every time we call a 'normal' function, but I for one would prefer to by way of good practise, and those extra chars make a huge difference as far as I'm concerned. I do not want to spend the rest of my life typing ::: in front of every function. note: it type's natural as the \ is right beside zxcv on my keyboard, which I'm ctrl+tapping all the time, so comes natural to my pinky! This is a no-brainer AFAIK. Thanks again (really), Nathan

« previous php.internals (#41269) next »