News for hackers. Stuff that matters.
Re:The Next Step for Generics by typical182 on Tuesday June 16, 2020 @05:08PM (#23544141)
FWIW, “comparable” and “ordered” are well defined terms in the Go language specification:

https://golang.org/ref/spec#Comparison_operators

Re:The Next Step for Generics by MHordecki on Tuesday June 16, 2020 @05:58PM (#23544764)
The vocabulary from that language spec is not even followed consistently in the language's own standard library.

The `strings.Compare`[1] function is used to establish ordering, in the spec sense. You'd think they would name it "Order".

Similarly, the popular go-cmp[2] library provides `Equal` for equality, instead of `Compare`.

[1]: https://godoc.org/strings#Compare [2]: https://github.com/google/go-cmp

Re:The Next Step for Generics by nsajko on Wednesday June 17, 2020 @11:38AM (#23552702)
So what?