You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.
The package name and the quark file name must be different. The compiler currently allows them to be the same - it should check and throw an error in this case.
The text was updated successfully, but these errors were encountered:
To clarify, the package name (package henry { ... }) and the quark filename (henry.q) must be different only if the quark file contains code that is not in a package. In the JS and Python backends, that non-package code ends up in a target file named after the quark filename (henry.js and henry.py), which makes importing the package (in henry/index.js and henry/__init__.py) conflict with importing the non-package code.
The compiler could detect this scenario and then complain unconditionally, as specified above, but it might be nicer not to complain if there is no non-package code and thus no conflict. I like the idea of defining a package called directory in a file called directory.q.
The package name and the quark file name must be different. The compiler currently allows them to be the same - it should check and throw an error in this case.
The text was updated successfully, but these errors were encountered: