News for hackers. Stuff that matters.
Re:Eight years of Go by ori_b on Friday November 10, 2017 @03:04PM (#15672512)
But this is something you often need to do for any non-trivial type, even with generics. There's a reason that C++ std::sort<> takes a comparator, or why Rust requires you to implement the 'Ord' interface.

Again, it's a little clunkier in Go, but not unusably so.

Re:Eight years of Go by pcwalton on Friday November 10, 2017 @03:36PM (#15672760)
You need to define how to order things in other languages (though not in languages where you can automatically derive implementations like Haskell or languages with built-in polymorphic comparison like OCaml) but you don't need to define how to swap elements over and over.
Re:Eight years of Go by ori_b on Friday November 10, 2017 @04:49PM (#15673342)
Yes, I'm aware. That's the clunky part that I was referring to (although, you can still avoid it for slices, and simply pass a single compare function.)

Go is far from my favorite language, but the sheer amount of bad criticism by people that clearly don't use the language annoys me.