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

Remove arbitrary limits in Starlark "while" loops #862

Conversation

fmeum
Copy link
Member

@fmeum fmeum commented Jan 21, 2022

These loops are essentially while loops and have reasonable exit conditions, so there is no reason to arbitrarily limit the range.

There is precedent for this number at:
https://github.com/bazelbuild/bazel/blob/f802525ad37e4f4567103682244d65f6cc55ff57/src/main/starlark/builtins_bzl/common/cc/experimental_cc_shared_library.bzl#L78

Related to #857

These loops are essentially while loops and have reasonable exit
conditions, so there is no reason to arbitrarily limit the range.

There is precedent for this number at:
https://github.com/bazelbuild/bazel/blob/f802525ad37e4f4567103682244d65f6cc55ff57/src/main/starlark/builtins_bzl/common/cc/experimental_cc_shared_library.bzl#L78

Related to bazel-contrib#857
@jsharpe jsharpe merged commit 50ee997 into bazel-contrib:main Jan 21, 2022
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.

2 participants