Proposal: Package aliases

Robert Fraser fraserofthenight at gmail.com
Wed May 14 22:49:00 PDT 2008


Yigal Chripun wrote:
> I like the general idea, but how many times do you need to import a
> module like tango.io.Stdout in a file?
> a related matter: why not separate the logical namespaces from the
> actual file system organization? something like .net does with its
> namespaces vs. assemblies?

I generally think that's a bad idea. It's more cognitive load on the 
programmer (worrying about what namespace something is in and the fact 
that a file can cover multiple namespaces). Looking up a particular 
piece of code is easy for both users and IDEs if there's a 1:1 name:file 
correspondence.



More information about the Digitalmars-d mailing list