Problem
Scripts currently run as a single file with no way to compose larger programs from smaller reusable files. As scripts grow, this makes reuse, organization, and shared definitions harder than they need to be.
Specification
Add support for including one script file from another.
Acceptance criteria:
- A script can include another script file by path.
- Included scripts execute in a predictable order relative to the including script.
- Relative paths are resolved consistently.
- Missing include targets fail with a clear error message.
- Recursive or cyclic inclusion is detected and handled with a clear error message.
Motivation
This would make larger scripts easier to organize, encourage reuse, and create a more realistic extension point for future language features.
Problem
Scripts currently run as a single file with no way to compose larger programs from smaller reusable files. As scripts grow, this makes reuse, organization, and shared definitions harder than they need to be.
Specification
Add support for including one script file from another.
Acceptance criteria:
Motivation
This would make larger scripts easier to organize, encourage reuse, and create a more realistic extension point for future language features.