News for hackers. Stuff that matters.
Re:Coroutines for Go by t8sr on Monday July 17, 2023 @06:17PM (#36764831)
Aside from the massive performance penalty, cache thrashing and context switching, this code will also leak a goroutine (and so, memory) if you don't finish receiving from `ch`. It's more brittle, longer to write, less local and in every other way worse than a for loop. Why would you ever do it?

There are no comments on this comment yet.