Replies: 1 comment
-
A fix to this would require a full compiler overhaul. I think that once well planned - this could come out without any conflicts |
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
-
Current amber compiler doesn't parse the code that is not being used. While it's a good practice performence wise, it's not that good when it comes to enforcing that amber files have correct syntax. This can lead to many bugs and maybe exploits. I think we need to address that as soon as possible.
The simplest idea is to introduce parsing as a separate phase. It would take a lot of work, but in the end code and compile process would be clearer.
Example of the issue:
Beta Was this translation helpful? Give feedback.
All reactions