Proposal: Package aliases
Ary Borenszweig
ary at esperanto.org.ar
Thu May 15 07:07:52 PDT 2008
Bill Baxter wrote:
> I think it would be convenient if packages could be aliased.
I'm really amazed that this is a problem. For example in Java, I almost
never need to worry about the name of a package or if the package name
is long, or how many characters I'll have to write in the import. Why?
Simply because I use an IDE that does that for me. So instead of
worrying about structuring a source file just to get the imports right,
aliasing imports and making things shorter, I just need to worry about
the problem I need to solve, algorithms, etc.
If you have only one way to import a module, than it becomes simple: you
don't have to think how you'll import import it, you just do it.
I also find useless and confusing to alias imported symbols like "import
foo : bar = baz"... who actually uses that? What for?
Just some thoughts...
(I'm sorry I always mention an IDE and stuff like that, but the point
is, I can focus on the problem instead of on the structure of the source
file)
More information about the Digitalmars-d
mailing list