3 ms·
Clever things like a sort function that can sort both ints and floats and any new type that implements a comparison function?
by unscaled 10y ago
Clever things like a sort function that can sort both ints and floats and any new type that implements a comparison function?
- daxfohl 10y agoOr a quicksort in constant memory.
- coldtea 10y agoHaskell, if that's where the sneer is addressed to, absolutely gives you that. It's just toy first-timer Haskell examples of quicksort (that still work, mind you) that don't. But then again, take a language like C, and consider how many things (like proper error handling) are missing from 99% of the toy tutorial examples available.
- canes123456 10y agoI am not arguing for Go. I am arguing that there is an issue with some complex languages. Go is trying to avoid that issue. I agree that the issue is real but also think go takes it a little too far.
- voutasaurus 10y agohttps://golang.org/pkg/sort/#Slice https://golang.org/pkg/sort/#Slice