Open nilq opened 4 years ago
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:
lib.wu
bob := "BUILDER" important_number: float = 100.0
The following otherfile.wu ...
otherfile.wu
import lib { * }
Should automatically generate the following import code in otherfile.lua:
otherfile.lua
local lib = require('lib') local bob = lib['bob'] local important_number = lib['important_number']
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:The following
otherfile.wu
...Should automatically generate the following import code in
otherfile.lua
: