- Joined
- Jul 8, 2024
Does anyone else here hate Go's strictness on unused variables and imports, and the forced code style?
I love the language itself and the package ecosystem, I think it's one of the most productive and readable languages. But I hate the compiler. Every time I quickly want to change or comment out code to debug or whatever, some variables or imports become unused and it will refuse to compile. Which means I have to either 1. needlessly change other parts around or 2. forget about it.
It feels user hostile, they think the only way for people to write good code is to have bad code literally not compile (this is obviously not the case, you can still write buggy software in Go).
I love the language itself and the package ecosystem, I think it's one of the most productive and readable languages. But I hate the compiler. Every time I quickly want to change or comment out code to debug or whatever, some variables or imports become unused and it will refuse to compile. Which means I have to either 1. needlessly change other parts around or 2. forget about it.
It feels user hostile, they think the only way for people to write good code is to have bad code literally not compile (this is obviously not the case, you can still write buggy software in Go).