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

[feature] Wildcard in imports #27

Open
nilq opened this issue Jul 4, 2020 · 0 comments
Open

[feature] Wildcard in imports #27

nilq opened this issue Jul 4, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@nilq
Copy link
Member

nilq commented Jul 4, 2020

This is something we need to have. While it does have some downsides in introducing bad practice behavior, it's pretty useful.

Given lib.wu with the following content:

bob := "BUILDER"
important_number: float = 100.0

The following otherfile.wu ...

import lib { * }

Should automatically generate the following import code in otherfile.lua:

local lib = require('lib')
local bob = lib['bob']
local important_number = lib['important_number']
@nilq nilq added the good first issue Good for newcomers label Jul 4, 2020
@evolbug evolbug added the enhancement New feature or request label Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants