3 ms·
> ... the GC has to assume that anything forward of any given slice into the underlying array may become accessible in the future as there is legal Go that can
by everybodyknows 3y ago
> ... the GC has to assume that anything forward of any given slice into the underlying array may become accessible in the future as there is legal Go that can access it.
This property complicates the semantics of slices.Delete() in an interesting way:
It is out of scope of the current proposal to write anything to the original tail
https://github.com/golang/go/issues/63393 https://github.com/golang/go/issues/63393