Arbitrary abbreviations in phobos considered ridiculous

so so at so.so
Sat Mar 10 01:34:36 PST 2012


On Saturday, 10 March 2012 at 09:25:28 UTC, so wrote:

> While i tend to code that way it is not as pretty in C++ as it 
> looks on paper when you use namespaces.
>
> namespace ns {
>   struct S {
>     void b();
>   }
>
>   void b(S s);
> }
>
> auto s = ns::S;
> s.b() // fine
> ns::b(s) // uh..
>
> It gets much worse when S is somewhere deep in many namespaces.
> ADL helps but it is also unreliable. I think D doesn't have 
> this issue.

And... at the end of the article he also mentions this.




More information about the Digitalmars-d mailing list