3 ms·
Any normal compiler usually allows overriding these options. I normally write Haskell and it has it all: unused variables, unused imports, name shadowing, non-e
by GreaterFool 11y ago
Any 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.