2 ms·
Use of uninitialized memory is Undefined Behavior. So in a sense, that code never worked properly, but authors didn't know about it until Rust caught it explici
by pornel 6y ago
Use of uninitialized memory is Undefined Behavior. So in a sense, that code never worked properly, but authors didn't know about it until Rust caught it explicitly.
- lima 6y agoAny observable behavior will be depended upon. A breaking change is a breaking change no matter what. Of course it's good that they fixed the UB.
- dralley 6y agoIt's undefined behavior. Anything can happen, by definition. I understand what you're saying, but anyone who knowingly relies on undefined behavior deserves whatever pain they get, and anyone who didn't know they were relying on undefined behavior, needed to know about it.