6 ms·
> The tried and true approach of providing a compare method works great and has none of these drawbacks. https://play.golang.org/p/JNhlfYoZgCV https://play.gol
by anonfunction 9y ago
> The tried and true approach of providing a compare method works great and has none of these drawbacks.
https://play.golang.org/p/JNhlfYoZgCV https://play.golang.org/p/JNhlfYoZgCV
- z0r 9y agoworth noting the article was published near the end of July 2016 and these methods were only added in the following month (and packaged as part of a Go release in October). i'd argue that since it's a retrospective of a few years of use, it would be fair to include that criticism even if that release had come shortly before publication
- randomdata 9y agoThe criticism is fair given the timeframe, but it equally useful to point out for the readers coming here today how the language has evolved since that time.