Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
booleandilemma
· 3y ago · 0 comments
I like Go as a language in the abstract sense, but the experience of writing Go code is so tedious to me. Refusing to compile if there's an unused variable or unused import is too harsh - at least give me the option to make these things warnings.
Comments
[–]
s_c_r
3y ago
My usual approach is to comment stuff out while debugging/developing. Works well.
[–]
sidlls
3y ago
Having unused variables or unused imports makes the code dirty and should be treated as errors. It's one of the (few) good things about Go.
[–]
IlliOnato
3y ago
In production code? Absolutely. While you experiment, write throw-away code, debug? Hell no!
[–]
wtetzner
3y ago
Sure, but it’s a lot of extra friction when iterating/debugging.