Re:Declined Proposal: A built-in Go error check function, “try”
by AsyncAwait on Wednesday July 17, 2019 @12:47AM
(#20456548)
The number of times I had to do this in practice over tens of thousands of lines of production Go code is about 3.
[ Parent
| on HN ]
Re:Declined Proposal: A built-in Go error check function, “try”
by badtuple on Wednesday July 17, 2019 @01:26AM
(#20456729)
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.