6 Go slices are fat pointers

nullprogram.com posted by kenny 1751 days ago  

Go famously has pointers, including internal pointers, but not pointer arithmetic. You can take the address of nearly anything, but you can’t make that pointer point at anything else, even if you took the address of an array element. Pointer arithmetic would undermine Go’s type safety, so it can only be done through special mechanisms in theunsafe package.

Register to comment or vote on this story