3 ms·
No one is arguing to roll your own when there a generic sort in the standard library. The issue with clever things is that people try to make a all purpose solu
by canes123456 10y ago
No one is arguing to roll your own when there a generic sort in the standard library. The issue with clever things is that people try to make a all purpose solution for what could be a simple one off solution. The all purpose is only used for 2-3 uses and it never battle tested.
- unscaled 10y agoClever 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
- didibus 10y agoI feel like you are arguing against Java, not against Haskell.