3 ms·
I am not really convinced. I could easily see Rust in the wild be full of unwrap, unsafe, etc.. if written by people that do not bother but are forced to use Ru
by uecker 2y ago
I am not really convinced. I could easily see Rust in the wild be full of unwrap, unsafe, etc.. if written by people that do not bother but are forced to use Rust.
And then, what is even the right behavior for a kernel driver that encounters an unexpected problem related to input? In the interest of security you might want it to crash the machine instead of continuing. I think panic is the default in Rust for many error cases - and I think this is the right approach, but it would have led to exactly the same result in this case.
- nindalf 2y agoYes in theory a person could write poor Rust code. But in practice the quality of popular Rust libraries is pretty high. Linus says you never crash in the kernel, which is why Rust code merged into Linux won’t crash.