Hacker News new | ask | show | jobs
by barsonme 1749 days ago
Outside of a few very specific situations, if you’re working with a pointer to a slice or string you’re doing something very wrong. Slices are “fat” pointers.

> To programmers from other languages, such as C or C++, the concept of pointers to dynamically extensible arrays seems like a perfectly decent idea

Write Go in Go, don’t write C in Go. (Which applies to every language, tbh.)