News for hackers. Stuff that matters.
Re:Golang landmines by mmargerum on Sunday September 18, 2016 @06:55AM (#12524807)
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

There are no comments on this comment yet.