4 ms·
Thirteen: don't try to sort, it's going to be painful if you do. http://golang.org/pkg/sort/ http://golang.org/pkg/sort/ (See example 1 -- you have to write th
by jamesaguilar 13y ago
Thirteen: don't try to sort, it's going to be painful if you do.
http://golang.org/pkg/sort/ http://golang.org/pkg/sort/ (See example 1 -- you have to write that for every concrete slice type you want to sort; it's not enough to write it once. And god help you if you also want to sort other collection types.)
- gertef 13y agoProject Lombok for Go would be relative easy, and so nice.
- jamesaguilar 13y agoWow, that's magnificent, although I don't think Go's reflection capabilities are quite sufficient to fix this particular language bug with decorators. But maybe my imagination just isn't sufficient.