Skip to content

Nicer suggestion for for loops with common offset - #67

Merged
alexkohler merged 1 commit into
alexkohler:masterfrom
NathanBaulch:foroffset
Feb 10, 2026
Merged

Nicer suggestion for for loops with common offset#67
alexkohler merged 1 commit into
alexkohler:masterfrom
NathanBaulch:foroffset

Conversation

@NathanBaulch

@NathanBaulch NathanBaulch commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

A common for loop pattern is to have a base offset in the lower and upper bounds.
Eg for i = offset; i < offset+num; i++ {.
This PR improves these capacity suggestions from (offset+num)-offset to simply num.

@alexkohler
alexkohler merged commit 1d94e3c into alexkohler:master Feb 10, 2026
1 check passed
@alexkohler

Copy link
Copy Markdown
Owner

Thank you!

@NathanBaulch
NathanBaulch deleted the foroffset branch February 10, 2026 19:32
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