News for hackers. Stuff that matters.
Re:Go 1.21 by quacker on Wednesday June 21, 2023 @05:10PM (#36424577)
They discuss this here: https://github.com/golang/go/wiki/LoopvarExperiment#will-the...

In fact, you can enable warnings/logs that indicate whether code that is affected by the loopvar experiment results in a stack-allocated or heap-allocated loop variable: https://github.com/golang/go/wiki/LoopvarExperiment#can-i-se...

I imagine that the current workarounds for this issue also end up with heap-allocated variables in many cases.

There are no comments on this comment yet.