3 ms·
I don't know if I'd call this a land mine, but I wish it didn't work because it confuses beginners. You can type for i:= range myvalues In this case i is the
by mmargerum 10y ago
I don't know if I'd call this a land mine, but I wish it didn't work because it confuses beginners.
You can type
for i:= range myvalues
In this case i is the index of the value. I'd rather they didn't allow this and instead you would just type
for i,_ := range myvalues