Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Having a lint rule to disallow empty catch bodies has been a good practice for me. Sometimes you deliberately do it and even then I am forced to at least leave a `// ignore` there.


Absolutely, linter rules that expose such things are critical to fixing these things. And I add them to the PR linter to comment on PRs when I can to point out discussions about such things.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: