3 ms·
There are classes of bug that are easy to write in C that are impossible to express in Rust.
by throwaway173738 7mo ago
There are classes of bug that are easy to write in C that are impossible to express in Rust.
- davemp 7mo agolet foo = [1, 2, 3]; unsafe { *foo.get_unchecked_mut(4) = 5; } Not sure why Rust evangelists always seem to ignore that unsafe exists.
- dendix 7mo agoHmmm... where could the oob access possibly be I can't tell
- davemp 7mo agoEasy to spot in a contrived example is not: > impossible to express in Rust I’m not going to argue with Rust folks who misrepresent the language.
- vmg12 7mo agoYou can prevent unsafe from being used in a repo with linter rules.