4 ms·
Go also has no warnings, and it seems to be working fine. (Though, some people do use linters to get back the warnings. But the language itself doesn't have an
by dilap 6y ago
Go also has no warnings, and it seems to be working fine.
(Though, some people do use linters to get back the warnings. But the language itself doesn't have any.)
The main thing about having warnings isn't being silent in the face of possibly-shady constructs, it's about just making them errors, so you can be sure they don't occur. So e.g. in Go an unused import is an error.
- wtetzner 6y ago> So e.g. in Go an unused import is an error. Which is an incredibly annoying thing, because you can't easily just comment out some code and do a quick build to test something. You are forced to cleanup imports/unused variables every time you want to build something.
- dilap 6y agoTradeoffs :-) (Also, if you use something like goimports, it's pretty much automatic.)