3 ms·
>Unused variables and imports are a compilation error which is INCREDIBLY annoying during development It's easily solved with: _ = unused_variable _ "unu
by kgeist 3y ago
>Unused variables and imports are a compilation error which is INCREDIBLY annoying during development
It's easily solved with:
_ = unused_variable
_ "unused_import"
Sure, it's annoying, but not in an incredible way :) Before I knew about this trick, I used to temporarily delete or comment out all related code, which is indeed incredibly annoying.
- DangitBobby 3y agoI know about it. Still incredibly annoying. I shouldn't need to do anything, it should just be completely ignored unless I run a linter or compiler in pedantic mode.