Arbitrary abbreviations in phobos considered ridiculous

Jonathan M Davis jmdavisProg at gmx.com
Fri Mar 9 15:45:19 PST 2012


On Friday, March 09, 2012 18:39:25 Steven Schveighoffer wrote:
> I want to stress again the difference between C++'s namespaces, and D's
> module import mechanism. In C++, you *deliberately* pull a namespace into
> your scope (and usually only in the implementation file, which doesn't
> affect any other implementation files), whereas in D, a standard "import
> std.datetime" *automatically* pulls its namespace into your scope, and any
> public imports it has made.

Yeah. D has great tools for getting around conflicts, but things tend to 
conflict by default, which means that it's very easy to break code by 
introducing conflicts when adding functions.

- Jonathan M Davis


More information about the Digitalmars-d mailing list