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

Allow continue and break while iterating over a map #2

Open
tchajed opened this issue May 20, 2020 · 0 comments
Open

Allow continue and break while iterating over a map #2

tchajed opened this issue May 20, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@tchajed
Copy link
Collaborator

tchajed commented May 20, 2020

In for...range loops over a map, we should support break similar to how ordinary for loops work. The concrete use case is code that finds an arbitrary element in a map for implementing an allocator.

This should reuse the existing code for chaining on an extra ; Continue when necessary, so we don't have to end every iteration with continue in Goose. This will also inherit improvements to that code to handle more control flow patterns.

@tchajed tchajed added the enhancement New feature or request label May 20, 2020
tchajed pushed a commit that referenced this issue Jul 12, 2024
Add Gallina bindings for type parameters
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