|
|
|
|
|
by flukus
1938 days ago
|
|
The borrow checker is 150% sound, it complains about errors but also complains about a lot of things that could have been perfectly fine in reality. There are plenty of times when multiple mutable references would be perfectly safe for instance. Valgrind might not catch 100% of errors, but at least what it catches are actual errors I care about. |
|
If you're writing safety-critical software though, being forced to restructure your code to satisfy the type checker (which, in this case, is kind of a simple proof assistant) seems like a sane tradeoff.