logoalt Hacker News

ErroneousBoshlast Sunday at 10:29 PM2 repliesview on HN

Golang is exactly the same.

It's extremely annoying until it's suddenly very useful and has prevented you doing something unintended.


Replies

bluecalmlast Sunday at 10:39 PM

I fail to see how a warning doesn't achieve the same thing while allowing you to iterate faster. Unless you're working with barbarians who commit code that complies with warnings to your repo and there is 0 discipline to stop them.

show 3 replies
SoKamillast Monday at 12:18 AM

And what is the unintended thing that happens when you have unused variable?