Re:I Love Go; I Hate Go
by millstone on Tuesday August 02, 2016 @02:49AM
(#12208206)
Oftentimes when I write in Go, I'll produce an unused variable as a side effect of commenting out code as a debugging experiment. What would you think about Go issuing a warning instead of an error in this case?
Also, if goimports solves import issues, why isn't it just built into the compiler?
Re:I Love Go; I Hate Go
by tptacek on Tuesday August 02, 2016 @02:52AM
(#12208213)
It doesn't work as a language feature, because it's not precise or perfect. Package references can be ambiguous, and need to be overridden. It works extremely well as a tool though.
Also, if goimports solves import issues, why isn't it just built into the compiler?