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

Is there a plan to make compiled javascript less verbose? #17

Open
maple3142 opened this issue Dec 17, 2019 · 1 comment
Open

Is there a plan to make compiled javascript less verbose? #17

maple3142 opened this issue Dec 17, 2019 · 1 comment
Labels
parser/compiler Issues related to parser/compiler

Comments

@maple3142
Copy link

For example, in the image above, there are many variables start with _ans, and most of them can be omitted.

@LingDong-
Copy link
Member

Hi there,

Good suggestion! The answer is yes! eventually I'll optimize the compiler, probably by doing look-aheads when going through the AST. In fact there is already some of that kind of optimization when you declare a variable and immediately assign to it.

However right now I'm working to make sure the compiler is absolutely free of bugs, and writing a Spec to describe exactly what that means. :)

Thanks.

@LingDong- LingDong- added the parser/compiler Issues related to parser/compiler label Dec 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parser/compiler Issues related to parser/compiler
Projects
None yet
Development

No branches or pull requests

2 participants