-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow use self with globs #1290
Comments
I think that this use case is obscure enough that enabling a composition like |
I like |
@Kimundi That's pretty fair. It could always be added later too if it was really desired which I'm not certain it is. |
I think |
@withoutboats Eh, I think I've done it before but I can't find any. Anyway, maybe you're writing lots of tests and you use globs for convenience for importing types but your preference is to call functions through the module (maybe functions didn't used to be importable through |
A case where this would be useful would be enabling enum imports:
|
Importing all the subnames of a module is easily done with globs but if you also want to import the module, then you need 2 separate lines to do so:
Without globs it's not an issues:
It would be convenient to allow globs to import the module on the same line as well. Here are some possible syntaxes which (I think) could be understandable:
+
is mainly because*
and+
are common with globs.+
typically means one or more while*
is any number of elements so they aren't exactly similar but it doesn't seem too unusual.The text was updated successfully, but these errors were encountered: