3 ms·
I think manual three-way comparisons are very clear. But so is strings.Compare. For better or worse, copying code is a pretty normal thing to do in Go. See "A l
by barsonme 4y ago
I think manual three-way comparisons are very clear. But so is strings.Compare. For better or worse, copying code is a pretty normal thing to do in Go. See "A little copying is better than a little dependency." [0]
[0]: https://www.youtube.com/watch?v=PAAkCSZUG1c&t=9m28s&themeRefresh=1 https://www.youtube.com/watch?v=PAAkCSZUG1c&t=9m28s&themeRef...
- codeflo 4y agoI even somewhat agree with that principle, but it don’t think it applies to using the standard library, which is (a) not little and (b) not a new dependency you add to the project. If that’s the justification to keep an implementation bad on purpose (which I’m not sure is the actual intention, but is at least that’s what the referenced comment claims), then I’m not even sure I speak the same language as the people who made that decision.