Comment by masklinn
2 years ago
It works fine if you replace that by the same thing, which is what most langages (with slices) do.
The problem is that Go does not do that, because its designers could not be arsed to provide a separate vector type it’s (ptr, int, int) and now you can start stomping on out-of-slice memory unless the creator of the slice has used the extended slicing form.
No comments yet
Contribute on Hacker News ↗