[jsr294-modularity-eg] Problems for JSR 294 to address

Daniel Leuck dan at ikayzo.com
Tue Jan 27 17:34:23 EST 2009


> I agree with the general point you're both making but I don't think
> that namespaces in .NET are any more hierarchical than packages in
> Java.  Can you guys provide some reference for the existence of
> hierarchical namespaces in .NET?  My understanding (perhaps incorrect)
> is that while it is true that C# (the language) has the "namespace"
> keyword, the .NET framework doesn't have this notion at all.  This is
> definitely what the CLI spec says (in the very beginning of Partition
> II, Standard 6):

They are more hierarchical at the C# language level. For example,
namespaces can be nested within a source file.

I'm not overly concerned with namespaces vs. packages (although C#
namespaces provide more flexibility), but the "internal" visibility
modifier scoped to an assembly is very useful and widely used. It
simply makes more sense than, for example, package private which is of
limited utility and is misunderstood by many (most?) Java developers.

Dan


More information about the jsr294-modularity-eg mailing list