Skip to content

Conversation

JosephTLyons
Copy link
Contributor

I was looking over the string module when I realized the changes I made for string.repeat had left an unnecessary parameter in the string.repeat_loop function.

@JosephTLyons JosephTLyons changed the title Remove unused parametere in string.repeat_loop Remove unused parameter in string.repeat_loop Aug 28, 2025
@JosephTLyons JosephTLyons force-pushed the Remove-unused-parametere-in-string.repeat_loop branch from 1e57e6f to 628f2e1 Compare August 28, 2025 05:56
@giacomocavalieri
Copy link
Member

Nice catch! I'm working on a PR so that this will become a compiler warning gleam-lang/gleam#4893

@JosephTLyons
Copy link
Contributor Author

JosephTLyons commented Aug 28, 2025

Amazing! I was working up the courage to suggest a lint for this exact thing, after opening this PR! 😅

Curious if this surfaces any other cases in the stdlib today.

@giacomocavalieri
Copy link
Member

Nope nothing popped up!

Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@lpil lpil merged commit 0a5c717 into gleam-lang:main Aug 28, 2025
7 checks passed
@JosephTLyons JosephTLyons deleted the Remove-unused-parametere-in-string.repeat_loop branch August 28, 2025 18:50
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.

3 participants