-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed as not planned
Labels
FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
Description
I missed the memo where constraints was renamed to cmp, but if I'd seen it, I would have pointed out that this name collides with an extremely widely-used package, go-cmp/cmp. As in, for example:
if !cmp.Equal(want, got) {
t.Error(cmp.Diff(want, got))
}Sure, the stdlib is privileged: it can name packages whatever it wants, and it's for third-party package authors to change their names to avoid collisions. But, in this case, go-cmp was there first, and it's so commonly used I'd say it's part of the de facto stdlib.
I'd like to see a cmp package in Go, and I'd like it to have the functionality of go-cmp (I think this has been proposed). Until then, I think it would be wise to keep this part of the namespace open.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.