Hacker News new | ask | show | jobs
by jamesaguilar 4703 days ago
Thirteen: don't try to sort, it's going to be painful if you do.

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.)

1 comments

Project Lombok for Go would be relative easy, and so nice.
Wow, 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.