3 ms·
I hate debugging someone else's code that has unused variables in it as much as this guy seems to hate the go compiler.
by artursapek 11y ago
I hate debugging someone else's code that has unused variables in it as much as this guy seems to hate the go compiler.
- GreaterFool 11y agoAny normal compiler usually allows overriding these options. I normally write Haskell and it has it all: unused variables, unused imports, name shadowing, non-exhaustive pattern matching, everything. But these things are warnings in my dev build and errors in the release build. That's a sane way to do it.
- Jabbles 11y agoExcept some people wouldn't enable -Werror, and the quality of Go code would suffer on average. Plus, now your compiler has options.
- artursapek 11y agoYeah. I'm a fan of mandates when it comes to things like compiler options. Everyone should just suck it up and work with the same constraints. Warnings are just errors without balls.