| ▲ | throwaway173738 8 hours ago |
| There are classes of bug that are easy to write in C that are impossible to express in Rust. |
|
| ▲ | davemp 6 hours ago | parent [-] |
| let foo = [1, 2, 3];
unsafe {
*foo.get_unchecked_mut(4) = 5;
}
Not sure why Rust evangelists always seem to ignore that unsafe exists. |
| |
| ▲ | dendix 5 hours ago | parent | next [-] | | Hmmm... where could the oob access possibly be I can't tell | |
| ▲ | vmg12 4 hours ago | parent | prev [-] | | You can prevent unsafe from being used in a repo with linter rules. |
|