Re:Coroutines for Go
by Kamq on Tuesday July 18, 2023 @07:56PM
(#36780563)
If we're going for readability instead of trying to stick to the case presented above, I'd go with:
And just mutate the internal state of the struct. Probably throw it behind some sort of interface like:
I think this still loses to ranging over a function, but I still think it should be compared to what you can do with the current language as opposed to what was originally posted.
[ Parent
| on HN ]
There are no comments on this comment yet.