Skip to content
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

[Request] Enable bracket syntax for from [xyz, abc] import nil #12003

Closed
awr1 opened this issue Aug 22, 2019 · 1 comment
Closed

[Request] Enable bracket syntax for from [xyz, abc] import nil #12003

awr1 opened this issue Aug 22, 2019 · 1 comment

Comments

@awr1
Copy link
Contributor

awr1 commented Aug 22, 2019

In Nim, you can import multiple modules in concisely as:

import std / [sequtils, parsexml]

However, you cannot do the same using the from syntax, (particularly if you want fully qualified imports on multiple modules) which I feel is not consistent, e.g.

from std / [sequtils, parsexml] import nil # error!
@awr1
Copy link
Contributor Author

awr1 commented Aug 22, 2019

Reposting this in RFCs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant