Re:Reflections on Rust, and the Sand Castle Metaphor
by a_t48 on Friday April 27, 2018 @12:34PM
(#16942103)
This is the equivelent of `~Foo() { Foo f; }` isn't it?
[ Parent
| on HN ]
Re:Reflections on Rust, and the Sand Castle Metaphor
by AndrewGaspar on Friday April 27, 2018 @01:24PM
(#16942525)
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.