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

I'm curious about that now, too. Is there the equivalent of Python's ruff or Rust's cargo clippy that can call out code that is legal and well-formed but could be better expressed another way?


Clang-tidy can rewrite some old code to better. However there is a lot of working code from the 1990s that cannot be automatically rewritten to a new style. Which is what makes adding tooling hard - somehow you need to figure out what code should follow the new style and what is the old style and updating to modern would be too expensive.




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

Search: