Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
a-nom-a-ly
· 11y ago · 0 comments
You seem to be confusing `array` with `slice`. AFAIK, append
always
returns a
new
slice. How could it not, when everything is copy/pass by value? A slice is essentially a struct with fields for len, cap and a pointer to an array.
Comments
No comments yet.
Better HN