Re:Go Naming Conventions: A Practical Guide
by jayd16 on Saturday March 28, 2026 @01:30PM
(#47556654)
You usually don't need an index that can't be used elsewhere. If you don't then you can abstract it away entirely and use an iterator or foreach features.
[ Parent
| on HN ]
Re:Go Naming Conventions: A Practical Guide
by Groxx on Saturday March 28, 2026 @02:13PM
(#47556996)
Depends on the language. Doing that is a huge pain in Go (until fairly recently, and it's still quite abnormal or closure-heavy), so the vast majority of code there does manual index-pairing instead of e.g. a zip iterator when going through two paired arrays.