3 ms·
The problem is that unsafe blocks affect the code outside it, too. It is a common misconception that it does not.
by johnisgood 5y ago
The problem is that unsafe blocks affect the code outside it, too. It is a common misconception that it does not.
- mumblemumble 5y agoBut can't you at least surmise that, as long as you can independently show that the code in the unsafe blocks only affects safe code in the intended manner, you can reason about the unsafe behavior in a more modular way? Kind of a memory safety equivalent to what structured programming did for control flow.