3 ms·
You are just not used to Rust's syntax. In my experience, Rust is much more readable than C, but that's probably because I actually wrote Rust code that is used
by birracerveza 7y ago
You are just not used to Rust's syntax.
In my experience, Rust is much more readable than C, but that's probably because I actually wrote Rust code that is used in production while I only have a theoretical understanding of C.
It's only a matter of experience with the language.
And as the blog post mentioned, `unsafe` is actually necessary to interface with other languages, including C. Without that there's no way it would be able to catch on. Sure, it's a footgun, but it's probably the only one and, again, necessary. It's all about developer responsibility. Maybe to improve the situation we could make it so that when you add a crate cargo explicitly warns you about how many `unsafe`s there are.