3 ms·
Interesting that this post has been in the #1 place for so long. I don't use Go but I knew this already by having randomly read some things about the language.
by fulafel 7y ago
Interesting that this post has been in the #1 place for so long. I don't use Go but I knew this already by having randomly read some things about the language. And slices are central language concepts after all.
Is it that the Go documentation doesn't cover the underlying implementation at the machine word level?
- _Chief 7y agoDocs explain this, not as detailed as the post, but it does touch on slices referencing/wrapping an array. However, there is a blog post dedicated to slice internals https://blog.golang.org/go-slices-usage-and-internals https://blog.golang.org/go-slices-usage-and-internals that dives further in