|
|
|
|
|
by uecker
679 days ago
|
|
Well, not every construct in C can have safety issue. Saying that every line in C may be the source of memory safety issues is as accurate as saying that every line of Rust may be a source of memory safety issues, because it could make use of unsafe. There is another issue: Unsafe code in Rust could violate assumptions that could cause other code in Rust to be unsafe. So it needs more care to write than regular C. But I agree that it still a huge net benefit with respect to memory safety, but let's not exaggerate. |
|