5 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. What. Have you even us
by 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.