3 ms·
Yeah, not sure I understand the criticism here. This program also has a bug. fn main() { let a = 3; assert(a == 2, "a should definitely be 2");
by AndrewGaspar 8y ago
Yeah, not sure I understand the criticism here. This program also has a bug.
fn main() {
let a = 3;
assert(a == 2, "a should definitely be 2");
}
Rust doesn't mean no bugs ever, and it doesn't mean no crashes. It protects you from a very specific class of severe bugs, and it has a pretty good set of built-in primitives to help you write bug-free code in the other classes. No more, no less.