-
Notifications
You must be signed in to change notification settings - Fork 553
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 continue statement #822
Conversation
GlaireDaggers
commented
Oct 8, 2020
- Adds a new continue token & statement. A continue statement immediately skips to the next iteration of a loop by jumping back to loop top.
- Added tests for the continue statement.
If you know how to do it, for readability, refactor your changes,
introducing one feature at a time with test cases, and prune unnecessary
changes.
|
Thanks @KillaMaaki I'll look closer soon. It's fine without refactoring since we're going to squash it into one commit anyway, it's a single feature. @KillaMaaki If you had already explored do while, you're welcome to make a PR so we can see the scope of the change. Thanks for the PR! |
This PR seems fine, tests all pass. Needs documentation though:
|
I've never felt the need in |
The presence of |
I've been testing this in my engine for a while and haven't seen any issues or surprises, and is great to have. |