News for hackers. Stuff that matters.
Re:Everyday hassles in Go by callesgg on Tuesday December 30, 2014 @02:33PM (#8816236)
How can sort be considered generic. Every type must be sorted by different stuff, the compiler can't possibly know what that stuff is.

I see what the author is coming from but generics would break what makes go great.

There has been times when I wanted generics, but it has generally meant that i was looking at the wrong side of the problem.

Re:Everyday hassles in Go by lmm on Tuesday December 30, 2014 @02:37PM (#8816271)
> How can sort be considered generic. Every type must be sorted by different stuff, the compiler can't possibly know what that stuff is.

What. Have you even used a language with generics? Yes it can, very easily; you can do it in a traditional-OO way by having a sortable interface, or if you want to be really cool you do it with a typeclass.

Re:Everyday hassles in Go by thrownaway2424 on Tuesday December 30, 2014 @02:45PM (#8816319)
Sort is generic when order is generic.