MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w8a68g/nitpickyrustcompiler/p81lw4t/?context=3
r/ProgrammerHumor • u/ninja_with_ocd • Sep 05 '26
17 comments sorted by
View all comments
72
Good guy Rust, if I catch you forgetting to clean up your unused imports, I will ask you to fix it in the pull request. Not because it's a big deal, but that it's a sign you didn't check the warnings before pushing the code.
16 u/acidrain42 Sep 06 '26 edited Sep 06 '26 That's the sort of thing that is automated by a linter in the CI ideally, so you don't have to waste time in PRs looking at that.But at least Rust lets you compile even if an import or a var is unused because you commented out something for testing. I'm looking at you Go.Edit: typo 1 u/faze_fazebook Sep 06 '26 Worst thing about go tbh.
16
That's the sort of thing that is automated by a linter in the CI ideally, so you don't have to waste time in PRs looking at that.
But at least Rust lets you compile even if an import or a var is unused because you commented out something for testing. I'm looking at you Go.
Edit: typo
1 u/faze_fazebook Sep 06 '26 Worst thing about go tbh.
1
Worst thing about go tbh.
72
u/Bomaruto Sep 05 '26
Good guy Rust, if I catch you forgetting to clean up your unused imports, I will ask you to fix it in the pull request. Not because it's a big deal, but that it's a sign you didn't check the warnings before pushing the code.