4 ms·
Since this thread started discussing warts and has people versed in go comment, can anybody explain what we have https://golang.org/src/strings/compare.go https
by Someone 6y ago
Since this thread started discussing warts and has people versed in go comment, can anybody explain what we have https://golang.org/src/strings/compare.go https://golang.org/src/strings/compare.go?
Why is “symmetry with package bytes” so important that it is deemed a good idea to add a function that “no one should use” _and_ intentionally make that function slow?
Also, if that’s a good idea, why doesn’t https://golang.org/pkg/strings/#Compare https://golang.org/pkg/strings/#Compare shout out harder that that function shouldn’t be used?
(Came across that when googling whether string comparison in go uses locale)