Skip to content

Remove *_until-style iteration methods.#18

Merged
jemc merged 1 commit intomainfrom
remove/until-methods
Aug 31, 2024
Merged

Remove *_until-style iteration methods.#18
jemc merged 1 commit intomainfrom
remove/until-methods

Conversation

@jemc
Copy link
Contributor

@jemc jemc commented Aug 31, 2024

This style/convention is a legacy from an old version of the Savi language, in which yield blocks could not be "jumped out of".

Now that return, error!, and break can all jump out of a yield block, the pattern (of allowing the caller to yield back a Bool to indicate whether iteration should continue) is obsolete, and should be removed to reduce complexity and maintenance burden.

This style/convention is a legacy from an old version of the Savi
language, in which yield blocks could not be "jumped out of".

Now that `return`, `error!`, and `break` can all jump out of
a yield block, the pattern (of allowing the caller to yield back
a `Bool` to indicate whether iteration should continue) is obsolete,
and should be removed to reduce complexity and maintenance burden.
@jemc jemc self-assigned this Aug 31, 2024
@jemc
Copy link
Contributor Author

jemc commented Aug 31, 2024

MacOS CI is failing only because of a Cirrus CI monthly cost exhaustion in the main Savi repo (the MacOS binaries there failed to publish). Merging anyway.

@jemc jemc merged commit cf261dc into main Aug 31, 2024
@jemc jemc deleted the remove/until-methods branch August 31, 2024 22:58
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

Successfully merging this pull request may close these issues.

1 participant