News for hackers. Stuff that matters.
Re:The Zen of Go by pishpash on Sunday February 23, 2020 @09:08AM (#22396871)
It's not the computer wanting you to do this, it's the collective arrogance and pedantry of Google designers wanting you to do this. Therein lies the rub. When the compiler detects the unused variable, it doesn't warn you, nor does it remove the variable as it knows exactly how, but one-ups you to force your hand.

You see, even if this is the right choice, the way it's carried out is douchey, and so I perfectly understand somebody calling it garbage to express a sentiment.

Re:The Zen of Go by makapuf on Sunday February 23, 2020 @05:57PM (#22400144)
You cannot remove an unused variable, you just dont refer to a stack place or register with it. Removing a variable would modify your source code. The compiler can only make you do it by pretending it refuses to understand it.