Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The number of times I had to do this in practice over tens of thousands of lines of production Go code is about 3.


That 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: