Re:Go: Redefining For Loop Variable Semantics
by corsix on Tuesday October 11, 2022 @03:36AM
(#33160432)
Lua gets this right - the lowering of loops (e.g. https://www.lua.org/manual/5.1/manual.html#2.4.5) says “var is invisible” and has “local v = var”, the latter akin to Go’s “item := item”
[ Parent
| on HN ]
There are no comments on this comment yet.