3 ms·
My take on this: There are certain properties all rust code should have. In safe rust, the compiler gives a mathematical proof this is so. In unsafe code, th
by hyperman1 7y ago
My take on this: There are certain properties all rust code should have.
In safe rust, the compiler gives a mathematical proof this is so. In unsafe code, the compiler does not, but still assumes these properties are holding. The burden to make sure everything is correct falls on the shoulders of the programmers.
But nobody knows exactly what these properties are. There is a big part known, but the edges are fuzzy. So unsafe code is required to follow rules nobody knows.
This effort is part of the work to clarify the rules. If accepted, both the compiler and unsafe programmer knows how far they are allowed to go
- littlestymaar 7y agoThat's a really good summary, thank you.