The syntax:
import foo.bar.* as baz
should allow one to use:
baz.Foo
where relevant.
The syntax:
import foo.bar.* as baz
should allow one to use:
baz.Foo
where relevant.
Can you give a real-life example of where you’d like to use these, please?
Vim, mostly.
(Very much not a fan of IDEs.)
So like, wildcard imports generally pollute the “global” namespace, so when you add a new wildcard import… you run the risk of breaking things. With an IDE that’s mostly fine because it’ll complain loudly (which is uh… less than ideal tbh but most ppl don’t worry too much about it), but when not using an IDE you won’t know until you’re done making changes.
Besides, namespaces just look nicer.