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

Support sub dependency in a package #202

Open
katat opened this issue Oct 11, 2024 · 1 comment
Open

Support sub dependency in a package #202

katat opened this issue Oct 11, 2024 · 1 comment
Labels

Comments

@katat
Copy link
Collaborator

katat commented Oct 11, 2024

When it is a lib dependency, it now assume all the code written in the lib.no.

It would be better if it allow the lib.no to instruct processing of other files.

For example, given lib.no:

use comparator;
use bits;

Then the compiler can look for the comparator.no and bits.no files in the package folder, and include them to be part of pipeline, instead of only taking care of lib.no

@mimoo
Copy link
Contributor

mimoo commented Oct 11, 2024

note that maybe going the golang way would be interesting? (any .go file under the same folder is accessible without importing, like it's all part of the same file)

@katat katat added medium and removed discussion labels Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants