Originally posted by patrick1946
View Post
To retrofit C++ to achieve that would change it so much that it effectively wouldn't be C++ anymore, but some blend of "uglier Rust" and "painful-to-write C++".
Rust gets away with it because you expect to have to put the work in to add all those extra safety annotations when writing a binding for a C or C++ library from another language. Attempts to convince C or C++ programmers to add more safety annotations (eg. through linters like splint) have failed.
Comment