> for i, v := range someSlice { ...
what a ridiculous comment - every single programming language has this or similar syntax for iterating a slice.
what a ridiculous comment - every single programming language has this or similar syntax for iterating a slice.
Anyway, not every language has it. C has arrays, but doesn't have any iteration sugar for them, and the general attitude of gophers does usually seem to be "if C didn't have it, it's not simple, it's magic", and that Go should just be C but with a GC, goroutines, and builtin hashmaps.