3 ms·
> First, there is no way to get a reference to a field inside a struct in Go what? https://play.golang.org/p/1OJ5U5ZwFJ https://play.golang.org/p/1OJ5U5ZwFJ
by EdiX 10y ago
> First, there is no way to get a reference to a field inside a struct in Go
what?
https://play.golang.org/p/1OJ5U5ZwFJ https://play.golang.org/p/1OJ5U5ZwFJ
> if you could get such a reference the compiler would be forced to reference count the member via the GC to satisfy the Go memory model
no reference counting in go.
- saghm 10y agoI'm not that familiar with Go, but my guess is that "reference count" here refers to the action that the garbage collector does when it pauses the world (i.e. "count as a reference") rather than the actual paradigm "reference counting".