3 ms·
The number of times I had to do this in practice over tens of thousands of lines of production Go code is about 3.
by AsyncAwait 7y ago
The number of times I had to do this in practice over tens of thousands of lines of production Go code is about 3.
- badtuple 7y agoThat surprises me. I have to manipulate slices all the time! Popping an item from a slice, reversing one, or clearing one without allocation in a hotspot is super common for me. I've used Go professionally for 6 years and love it, so the patterns are ingrained in my head and don't bother me. But it seems pretty clear that it's much more arcane than alternatives.