Open kyleect opened 8 months ago
// @package/utils.locks
import third_party_lib::Thing;
import @std::http::{Request, Response};
import @package::Foo;
// This becomes the module and import path of @package::utils::sum;
export fn sum (a, b) { return a + b; }
One issue to think about are side effects when importing. Locks right now allows all types statements in locks files. This creates side effects when you import other locks files.
Another question would be what module/import path system would be used? Declared package paths like java, relative file system paths like node, named/scoped packages like node, namespaces like c#
Imports
File path
Class/module path
Exports