cmp: package name collides with de facto stdlib 'go-cmp' #61535
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
I missed the memo where
constraints
was renamed tocmp
, 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: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 ofgo-cmp
(I think this has been proposed). Until then, I think it would be wise to keep this part of the namespace open.The text was updated successfully, but these errors were encountered: