News for hackers. Stuff that matters.
Re:Go: Redefining For Loop Variable Semantics by bts on Tuesday October 11, 2022 @03:34PM (#33168163)
Re:Go: Redefining For Loop Variable Semantics by ok_dad on Tuesday October 11, 2022 @06:34PM (#33170127)
Thanks, that article seems to me like a primer for "Why Go should have a block scoping option" because practically every error introduced there seems to be part of a scoping issue. I love the block scoping of a Lua `local` when I use Lua, and I wish I could do that in Go!