Hacker News new | ask | show | jobs
by bishop_mandible 4782 days ago
> a structure that has a pointer to the underlying data by value

Isn't this the exact definition of a reference type?

1 comments

Except that if you are passed something like a slice and you modify the length, that change is not reflected to others like it would be with a reference. See my above code example.