by ReflectedImage · 3y ago · 0 comments
I'm not sure why you feel Rust code would be more correct than Python code but it certainly isn't true.
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.