On Thu, Feb 5, 2009 at 4:02 PM, Sergey Sadovnikov
Good example. But... You have to do something very _special_ if you
want to get the same result inside only 'System' namespace. Isn't it?
I mean what you can use unqualified ids and usings in most cases
without any errors from the compilator _when you use only standard
facilities_.
True, but same with C++. If you are only using std namespace, you have no problems. It's only when you bring multiple namespaces into the same scope. e.g. System + XNA, or std + boost. <snip code>
Is it quite readable or your eyes are seeing only 'slib' and '::'? Is _it_ improving of 'code readness'? And you are offering C++ beginners to use such coding style. It is good style, but I'm absolutely sure what beginners (even with C# or Java experience) say you something ugly and then return to C# or Java. :)
While I'm used to seeing the former, I agree it's more readable without the namespace qualifications. --Michael Fawcett