News for hackers. Stuff that matters.
Re:Golang landmines by enneff on Saturday September 17, 2016 @09:38PM (#12523504)
How would this make any sense, though? In the case of "range" I can see the confusion, but when you explicitly declare a variable and increment it for each iteration of the loop, the only way it can work is if there's one instance of the variable.
Re:Golang landmines by zamalek on Sunday September 18, 2016 @01:54AM (#12524116)
It's the disparity between how a human thinks and how a machine thinks. Systems languages tend to care less about humans think, which I prefer because humans don't have consistently defined logic.
Re:Golang landmines by enneff on Sunday September 18, 2016 @04:00AM (#12524375)
I don't think so. As programmers, we have to think logically, and in this situation there really is no other logical way of thinking about how that code might work.
Re:Golang landmines by pjmlp on Sunday September 18, 2016 @01:48PM (#12526253)
Only C and its direct descendants.

There are saner alternatives, more human friendly, to systems programming.