Jeremy Wall 54faeede5e FEATURE: Imports as expressions.
This is a breaking change for the language. However it makes a number of things
easier. Like importing specific symbols from a file.

adds: #28
2019-01-13 14:10:43 -06:00

12 lines
356 B
Plaintext

let composed = module{} => {
let host_mod = import "host_module.ucg";
let site_mod = import "site_module.ucg";
let site_conf = site_mod.site_mod{hostname="example.com", port=80};
let host_conf = host_mod.host_mod{hostname="example.com"};
};
let unified = composed{};
let site_conf = unified.site_conf;
let host_conf = unified.host_conf;