Re:Why Zig when there is already C++, D, and Rust?
by MaxBarraclough on Saturday January 16, 2021 @06:29AM
(#25801603)
It's also possible to formally verify C++, [0][1] but this isn't commonly done. I imagine it's very labour intensive.
Since C++ is more relevant to what I do, naturally I keep validating how good they fair and so far not good.
Lifetimes checker for example, is only able to deal with basic workflows and when it complains the error messages aren't that good, leaving you wonder why the analyser considered it an incorrect lifetime.
Main reason being, if the call sites aren't annotated, it can only guess the lifetime use, and mostly it gets it wrong.
No doubt if they keep throwing money at it, they might eventually solve it, however this is already a three year effort and this is the best so far.