Do Strongly Typed Languages Reduce Bugs?

“Static vs dynamic typing is always one of those topics that attracts passionately held positions,” writes the Morning Paper — reporting on an “encouraging” study that attempted to empirically evaluate the efficacy of statically-typed systems on mature, real-world code bases. The study was conducted by Christian Bird at Microsoft’s “Research in Software Engineering” group with two researchers from University College London. Long-time Slashdot reader phantomfive writes:
This study looked at bugs found in open source Javascript code. Looking through the commit history, they enumerated the bugs that would have been caught if a more strongly typed language (like Typescript) had been used. They found that a strongly typed language would have reduced bugs by 15%. Does this make you want to avoid Python?

Read more of this story at Slashdot.



Source: Slashdot – Do Strongly Typed Languages Reduce Bugs?