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

add a better support for loops in incremental interpreter #17

Open
jimy-byerley opened this issue May 10, 2024 · 0 comments
Open

add a better support for loops in incremental interpreter #17

jimy-byerley opened this issue May 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jimy-byerley
Copy link
Owner

Right now, the support for loops is simply to ignore their variables and not place any backup step inside. Forcing us to write the loops the old way, by writing it completely before being able to test it.

A better support could take inspiration from function edition:

  • the shortcut to edit the function will edit the loop when the cursor is in the area of the loop's block
  • the edition will freeze the loop initial context
  • for for loops it will allow to change between elements of the iterator to test the loop body
  • the loop body will be edited in its proper interactive interpreter like functions body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant