Re:Go is Not Python
by majewsky on Friday June 23, 2017 @04:46AM
(#14617805)
Alternative options of solving this issue include `break`ing when the right option is found (so the loop variable doesn't get overwritten again) or moving everything into a function:
Both options have the added advantage of stopping iteration as soon as the result is found.
[ Parent
| on HN ]
There are no comments on this comment yet.