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

Differences between Generate and Evaluate #51

Open
maciejmatuszak opened this issue Jun 7, 2021 · 1 comment
Open

Differences between Generate and Evaluate #51

maciejmatuszak opened this issue Jun 7, 2021 · 1 comment

Comments

@maciejmatuszak
Copy link

@richorama Hi Richard, I had bit more time and started to look at the implementation of the tickets I put some time ago.
One thing I notice there is Generate is creating subContext for block operations like "if", "while" or "procedure call".
Is there reason why Evaluate is not doing it?

@richorama
Copy link
Owner

excellent observation!

I wrote the 'Evaluate' implementation to follow how I thought the blockly implementation works (i.e. variables can be used outside of their scopes).

The 'Generate' method was contributed.

I'll check to see which approach is correct.

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

No branches or pull requests

2 participants