News for hackers. Stuff that matters.
Re:Fixing for Loops in Go 1.22 by saagarjha on Tuesday September 19, 2023 @10:58PM (#37579937)
So my 2¢ as someone who's just been skimming this thread: I read the second example faster. I mean it's like 2 seconds vs 5 seconds, but in the first I have to actually read your loop to see what it's doing, whereas in the latter I can just go "oh apply fn over x".

There are no comments on this comment yet.