News for hackers. Stuff that matters.
Re:Error Handling in Go (2016) by newen on Friday April 05, 2019 @10:29PM (#19588788)
Is that an O(n) implementation of pop? I hope you realize my point..

I looked it up and it's not but the point is that you shouldn't have to worry about these things, including implementation details of trees and hundreds of other data structures.

Re:Error Handling in Go (2016) by oconnor663 on Saturday April 06, 2019 @01:38AM (#19589439)
It isn't. It re-slices the backing array and retains its capacity. (Maybe that's what you looked up at the end?)