Replies: 2 comments
-
I like that idea... After all, we do allow comments to be placed outside of the module [curlies], why not make an exceptions for imports as well |
Beta Was this translation helpful? Give feedback.
0 replies
-
The compiler change was made, and I updated the wiki docs a few days ago to reflect this change. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the Ecstasy Guide (https://github.com/xtclang/xvm/wiki/lang-module), we talk about how no code can exist outside of the module statement, including the obvious "import" statements that Java developers are so used to. While it is not an arbitrary decision (there are real technical reasons for the rule), it seems like an easy "gotcha" to fix, by simply relocating import statements within the same file from outside of the module to inside of the module.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions