| ▲ | dvt 3 hours ago | |||||||
You actually kind of don't, I use like a zillion crates which have unsafe Rust in them and it's not like I'm sitting here reading every single line of their code. I like Rust for various reasons, but its memory safety is (imo) overstated, especially when doing low-level stuff. | ||||||||
| ▲ | josephg 3 hours ago | parent | next [-] | |||||||
Almost all rust (95%) is safe rust. You can opt out of array bounds checks with unsafe { array.get_unchecked(idx) } instead of just typing array[idx]. But I can't remember the last time I saw anyone actually do that in the wild. Its not common practice, even in most low level code. Rust is bounds checked by default. C is not. Defaults matter because, without a convincing reason, most people program in the default way. | ||||||||
| ||||||||
| ▲ | sieabahlpark an hour ago | parent | prev [-] | |||||||
[dead] | ||||||||