News for hackers. Stuff that matters.
Re:Fixing for Loops in Go 1.22 by Cthulhu_ on Wednesday September 20, 2023 @04:00AM (#37581639)
No I don't think so; any old working code will be using the x := x workaround, which will keep working when going to this version with the changed loop mechanics. What may happen is a form of... some adage, I forgot the name, where code accidentally relies on the old behaviour and breaks when that old behaviour is no longer there.

(that same adage applies to e.g. browser manufacturers having to implement bugs to not break certain websites)

Re:Fixing for Loops in Go 1.22 by Quekid5 on Wednesday September 20, 2023 @07:04AM (#37582714)
Are you thinking of Hyrum's Law?
Re:Fixing for Loops in Go 1.22 by sgerenser on Wednesday September 20, 2023 @10:10PM (#37592493)
Whatever, just give me an option to enable spacebar heating. https://xkcd.com/1172/
Re:Fixing for Loops in Go 1.22 by Quekid5 on Sunday September 24, 2023 @05:34PM (#37637424)
I enjoyed that reference :)