3 ms·
It is trivial to write both of these on your own, why do we need unnecessary abstraction for such a simple task.
by acroback 7y ago
It is trivial to write both of these on your own, why do we need unnecessary abstraction for such a simple task.
- millstone 7y agoSorting, appending to a slice, or removing from the middle of a slice are all awkward and bad in Go.
- kccqzy 7y agoThat's the ethos of Go. The standard library can be poor and woefully incomplete because hey it's easy to reinvent the wheel. And then instead of composing functions (say, a reduce function applied to max to find the max of a sequence), users just end up rewriting everything because it's trivial.