4 ms·
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
by callesgg 12y ago
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.
- lmm 12y ago> 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.
- thrownaway2424 12y agoSort is generic when order is generic.