4 ms·
For sure it will increase the quality and predictability of C codebases, and I would definitely recommend static analysis tools in any language. But it's a stop
by Cthulhu_ 7y ago
For sure it will increase the quality and predictability of C codebases, and I would definitely recommend static analysis tools in any language. But it's a stopgap measure, it does not solve the root cause. It has to be made impossible to make mistakes, which is what newer languages are trying to enforce.
- pron 7y agoTrue, but if we believe the problem is serious and urgent, then a relatively cheap and quick stopgap is exactly what we need.
- pjmlp 7y agoExcept the first hurdle is to win the religous war against such tools, lint exists since 1979 after all. According to Herb Sutter's question to the audience a couple of years ago at CppCon, JetBrains and ISO C++ surveys, developers and corporations that actually care about static analysis tooling are the exception and not the norm.
- pron 7y agoI totally agree, but safe languages have to climb a hill at least as high as well, and it might even be the same hill. I just think it's worth mentioning that if this kind of safety is important to you, then there are alternatives that are cheaper than a rewrite. Getting people to 1. care about the problem and 2. accept that there are tools that can help them -- be they safe languages or sound static analysis -- is, indeed, a hurdle.