I’m interested to hear some thoughts on whether sort.Reverse is consistent with most other implementations in the Go standard library.
On first look it seems like a slightly indulgent way to tell sort.Sort to do a reverse sort and does not read particularly nicely, i.e:
Would this be more readable and more easily taught to beginners?
Do different areas of the standard library have a different implementation style due to preferences of the authors? Is there an effort made to maintain consistency across the board?