Skip to content

Conversation

@ufUNnxagpM
Copy link
Contributor

@ufUNnxagpM ufUNnxagpM commented Jul 26, 2025

Rationale for this change

This change migrates several of usages of golang.org/x/exp packages to use the standard library equivalents that have been introduced into newer go versions.

What changes are included in this PR?

This change is a single commit

behavior-wise, this is intended to be a noop

Are these changes tested?

Tested with go test ./.... I get the exact same behavior (including some failures) as on master.

Are there any user-facing changes?

n/a

@ufUNnxagpM ufUNnxagpM marked this pull request as ready for review July 26, 2025 02:23
@ufUNnxagpM ufUNnxagpM requested a review from zeroshade as a code owner July 26, 2025 02:23
Comment on lines -54 to 64

func Min[T constraints.Ordered](a, b T) T {
func Min[T cmp.Ordered](a, b T) T {
if a < b {
return a
}
return b
}

func Max[T constraints.Ordered](a, b T) T {
func Max[T cmp.Ordered](a, b T) T {
if a > b {
return a
}
Copy link
Member

Choose a reason for hiding this comment

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

I need to get around to removing these entirely and just using the updated built-ins.... but that doesn't have to happen for this PR

@zeroshade
Copy link
Member

zeroshade commented Jul 28, 2025

Thanks for this! It's something I've been meaning to get to

@zeroshade zeroshade merged commit 679d97b into apache:main Jul 28, 2025
57 of 59 checks passed
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