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

EnvViz: anonymous function objects are not displayed #1973

Closed
martin-henz opened this issue Oct 9, 2021 · 1 comment · Fixed by #1982
Closed

EnvViz: anonymous function objects are not displayed #1973

martin-henz opened this issue Oct 9, 2021 · 1 comment · Fixed by #1982
Assignees
Labels
Enhancement New feature request proposal Tentative suggestion inviting discussion

Comments

@martin-henz
Copy link
Member

https://share.sourceacademy.nus.edu.sg/02vj2

function curry(f) {
return x => y => f(x, y);
}
curry(math_pow)(3)(4);
undefined;

Screenshot 2021-10-09 at 9 55 33 AM

However, in the lectures, we also show the function objects that get created:

Screenshot 2021-10-09 at 10 00 57 AM

A "complete" solution would also need to show all pairs that get created during the program run, regardless whether they are referred to by names or not.

@martin-henz martin-henz added Enhancement New feature request proposal Tentative suggestion inviting discussion labels Oct 9, 2021
@martin-henz
Copy link
Member Author

Here is an idea how to fix it: We could create a dummy binding in the current environment for EVERY value, regardless whether they have other bindings in the same environment or not. We could mark those dummy bindings such that the dummy name doesn't occupy a row in the frame and no arrow is drawn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature request proposal Tentative suggestion inviting discussion
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants