|
|
|
|
|
by judofyr
1608 days ago
|
|
One of the core ideas behind unsafe blocks is that they don’t actually change any semantics. All they do is allow more operations. This makes it a lot easier to reason about (for both the programmer and the compiler) since there’s not two different set of rules to remember. It does however makes things a bit clunky since the unsafe bits need to ensure a “safe” state throughout the whole block and not only by the end of it. |
|
Why is this problematic? (I presume there is a fatal flaw as it seems too obvious of a solution..)