Should be able to rename wildcard imports (aka "Namespaces are one honking great idea -- let's do more of those!")

The syntax:

import* as baz

should allow one to use:


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 :stuck_out_tongue: 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. :slight_smile:

1 Like