by tcfhgj · 3y ago · 0 comments
The reasons are types and rusts multi threading guarantees, which become even more helpful when doing refactorings
Programmers write bugs per line, something like Python which only uses 33% of the lines and thus contains only around 33% of the bugs. On the other hand, if you go down the prove things are correct at compile time you will eliminate around 5% of the bugs.
So you can choice between eliminating 67% of the bugs by making the language simpler to use or 5% of the bugs by doing formal checking.
Source?
Hack more code into one line -> less bugs for the overall program? doubt
Use Typescript instead of JS (thus add a few loc) -> more bugs? certainly doubt