-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
starlark: eta-abstract the new iterators (#537)
According to golang/go#66626 (comment), the convention for iterator methods is that they should return an iterator, not be an iterator. The caller thus uses this form: for _ elem := range v.Elements() { ... } not this one: for _ elem := range v.Elements { ... } This is unfortunately a breaking API change, but since go1.23 is not yet released, no-one should be using the new range syntax yet.
- Loading branch information
Showing
2 changed files
with
32 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters