Hacker News new | ask | show | jobs
by AnimalMuppet 58 days ago
We understand that static analysis is often less bulletproof than a compiler's type system. It doesn't always catch everything. If it does, it often says "may", and then you have to sort out the false positives from the real problems, and there can be a lot of them.

And if you don't take every problem seriously, and do a full investigation, then you are risking a real problem that you don't fix, which can turn into... a runtime crash.

1 comments

You are describing static analysis as it has been done. Nothing stopping you from doing sa that rejects as strictly as rust for example does.
So you do want a type checker and a non-trivial type system after all.