HACKER Q&A
📣 Kinrany

Is there empirical evidence that static types reduce bugs?


Hillel will shank the owner of that open source library you're competing with if you can provide access to relevant internal studies of some tech corp: https://twitter.com/hillelogram/status/1291063196317605889


  👤 auganov Accepted Answer ✓
I think a better way to phrase the question is: "Is there empirical evidence that static types reduce software defects that make it into production?"

Or alternatively if that's not a concern "Is there evidence that static typing increases developer velocity by reducing debugging time?"

It's pretty unquestionable that some classes of bugs are eliminated at compile time. But whether it actually ends up mattering in the big scheme of things is another question.

I'm guessing the answer to the first question is a qualified yes, while the answer to the second is no.


👤 seanwilson
How could it not? By definition, strong statically typed languages won't let you release code with certain classes of bugs so they must reduce bugs going live unless humans are perfect bug detectors.