by falcolas · 11y ago · 0 comments
Even if you did decide to use Rust instead of C in C's typical domain - operating systems, drivers, and constrained resource devices - you would be forced into using "unsafe" blocks anytime you had to interact directly with the hardware, manually manage memory, or issue ASM commands; at which point you're as vulnerable to programming mistakes as C.
Yes, but if you start off in C's typical domain, then you cannot decompose your problem set into safe and unsafe bins using C. So you're stuck with unsafe-lowest-common-denominator everywhere you go.
It is not about completely removing unsafe stuff. It is about reducing the possible mistakes as much as possible.
Still, in theory isolating the possible causes is a fantastic advantage.