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

refactor: make the compiler work lazily #7

Merged
merged 5 commits into from
Nov 9, 2023
Merged

refactor: make the compiler work lazily #7

merged 5 commits into from
Nov 9, 2023

Conversation

xffxff
Copy link
Owner

@xffxff xffxff commented Nov 9, 2023

A function is compiled only when we need it (i.e. when we call it). For example,

fun hello() {
    ...
}

fun hi() {
    ...
}

hi();

when we execute the script, the function hello does not get compiled because it is not called anywhere

I want the compiler to work as shown below

image

But the bad news is that closures are not supported now

Copy link

netlify bot commented Nov 9, 2023

Deploy Preview for lox-playground ready!

Name Link
🔨 Latest commit 44e0a07
🔍 Latest deploy log https://app.netlify.com/sites/lox-playground/deploys/654ca33835303600083b4e04
😎 Deploy Preview https://deploy-preview-7--lox-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@xffxff xffxff mentioned this pull request Nov 9, 2023
@xffxff xffxff merged commit f34048c into main Nov 9, 2023
8 checks passed
@xffxff xffxff deleted the lazy_compile branch November 9, 2023 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant