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

Require the package name to prefix all imports #176

Open
jfecher opened this issue Jan 14, 2024 · 0 comments
Open

Require the package name to prefix all imports #176

jfecher opened this issue Jan 14, 2024 · 0 comments
Labels
good first issue An issue that doesn't require deep knowledge of the compiler to fix or implement language feature A feature proposal for something added to the core language (not the standard library)

Comments

@jfecher
Copy link
Owner

jfecher commented Jan 14, 2024

Part of implementing the "Packages" design: https://antelang.org/docs/language/#packages

Currently import paths to the stdlib (https://github.com/jfecher/ante/tree/master/stdlib) can be imported via import Vec where we want the package name to be prefixed in the path: import Std.Vec to allow for future additions to the stdlib without conflicting with any names in existing programs. This should also apply to the user's current project. E.g. in MyProject/{T.an, U.an} the imports import T and import U are currently allowed, where these will need to be import MyProject.T in the future instead.

@jfecher jfecher added language feature A feature proposal for something added to the core language (not the standard library) good first issue An issue that doesn't require deep knowledge of the compiler to fix or implement labels Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue An issue that doesn't require deep knowledge of the compiler to fix or implement language feature A feature proposal for something added to the core language (not the standard library)
Projects
None yet
Development

No branches or pull requests

1 participant