Skip to content

Conversation

@NNBnh
Copy link

@NNBnh NNBnh commented Sep 17, 2025

In the issue #867, I have some suggested arguments naming:

The reason I choose fn clamp(x, from start_bound, to stop_bound) is that it's more consistent with the list.range(from start, to stop) arguments naming.

@NNBnh NNBnh changed the title Fixed int.clamp and float.clamp arguments naming. Fixed int.clamp and float.clamp in some case could be seen as misleading. Sep 17, 2025
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! Would you mind rebasing on main and updating the changelog please 🙏

Sorry it took me so long to review this.

@NNBnh
Copy link
Author

NNBnh commented Nov 1, 2025

Done! ^^

image

Edit: sorry forgot the changelog...

@NNBnh
Copy link
Author

NNBnh commented Nov 1, 2025

Okay, I added the changelog, my English is not the greatest but I hope it's good enough ><

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.

4 participants