If this language feature is annoying to you, you are the problem. You πare π the π reason π it π exists.
I worked in places where the developers loaded their code full of unused variables and dead code. It costs a lot of time reasoning about it during pull request and it costs a lot of time arguing with coworkers who swear that theyβre going to need that code in there next week (they never need that code).
This is a very attractive feature for a programming language in my opinion.
PS: Iβm still denying your pull request if you try to comment the code instead.
βοΈEDIT: A lot of yβall have never been to programming hell and it shows. πͺ Iβm telling you, Iβve fixed bayonets in the trenches of dynamically typed Python, Iβve braved the rice paddies of CICD YAML mines, Iβve queried alongside SQL Team Six; Iβve seen things in production, things youβll probably never seeβ¦ things you should never see. Itβs easy to be against an opinionated compiler having such a feature, but when you watch a prod deployment blow up on a Friday afternoon without an easy option to rollback AND hours later you find the bug after you were stalled by dead code, it changes you. Thenβ¦ then you start to appreciate opinionated features like this one. π«‘