News for hackers. Stuff that matters.
Re:Go: Redefining For Loop Variable Semantics by foldr on Friday October 14, 2022 @06:30AM (#33201711)
Yes, Go has a precise (i.e. non-conservative) garbage collector. It seems odd to me to think about that as some kind of special feature of the & operator. It's certainly not a surprising feature. Knowing that Go has a precise GC, one certainly expects the GC to know that the value of &x references x. If it didn't that would be a major bug.

There are no comments on this comment yet.