Skip to content

Conversation

@pxwanglu
Copy link

In Go 1.21, the standard library includes built-in max/min function, which can greatly simplify the code.

@pxwanglu
Copy link
Author

pxwanglu commented Nov 6, 2025

@billettc @maoueh Hi, Could you please review this PR at your convenience? Thank you very much.

@maoueh
Copy link
Contributor

maoueh commented Nov 12, 2025

@pxwanglu I don't find this to increase readability, min/max feels to me always harder to reason about, in most cases. I'll let some of my colleague review this and share their opinion.

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