Hacker News new | ask | show | jobs
by classified 60 days ago
So you prefer runtime crashes to compiler diagnostics, just so the type system can be "simpler"? I find these priorities backwards.
1 comments

> So you prefer runtime crashes

Do you not understand what static analysis is?

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.

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.