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

Functions should lose their binding #70

Closed
misalcedo opened this issue Jan 5, 2022 · 4 comments
Closed

Functions should lose their binding #70

misalcedo opened this issue Jan 5, 2022 · 4 comments
Labels
wontfix This will not be worked on

Comments

@misalcedo
Copy link
Owner

Currently the binding makes it so a function cannot reference any functions defined after it's declaration. That's why I needed to override the function to support factorial. Only the old factorial definition existed.

A better implementation is to do multiple passes to determine the names at leach scope level.

@misalcedo misalcedo changed the title Functions should loose their binding Functions should lose their binding Jan 5, 2022
@misalcedo
Copy link
Owner Author

Just use the given environment and remove the binding field.

@misalcedo
Copy link
Owner Author

Can't just remove the binding because without a stack, the nested and recursive calls fail.

@stale
Copy link

stale bot commented Mar 10, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Mar 10, 2022
@stale
Copy link

stale bot commented Mar 19, 2022

This issue has been automatically closed because it has not had recent activity. You may re-open the issue if it is still relevant.

@stale stale bot closed this as completed Mar 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant