Go: A new system programing language
Walter Bright
newshound1 at digitalmars.com
Tue Nov 17 18:09:56 PST 2009
Bill Baxter wrote:
> It's pretty common to see bits of a namespace get spread across many files.
> There's no way to do that in D. But I wouldn't go so far as to say
> it's a necessity.
Yeah, Andrei and I talked about that and if it was a worthwhile
capability. We decided it was a misfeature in that it would subvert
encapsulation.
For example, if any source file can add functions to a namespace, how
can function overloading be reliable?
C++ namespaces are often considered a failure, and this is one of the
reasons.
More information about the Digitalmars-d
mailing list