| ▲ | Jtsummers 3 hours ago | ||||||||||||||||
> Doing unsafe stuff is pretty inevitable if you want to do anything non-hello-world-ish. So the vast majority of Rust projects involve writing at least one unsafe block? Is that really your claim? | |||||||||||||||||
| ▲ | greiskul 3 hours ago | parent [-] | ||||||||||||||||
And even if you do end up writing an unsafe block, that should be a massive flag that the code in said block should deserve extra comments on why it is safe, and extra unit tests on verifying that it does not blow up. How do you know the unsafe operation is safe? What are the preconditions the code block has? Write it down, review it, test it. | |||||||||||||||||
| |||||||||||||||||