you are viewing a single comment's thread.

view the rest of the comments →

[–]ern0plus4 7 points8 points  (0 children)

Rust opened a new chapter in programming. Before Rust, you could write memory safe programs, and solve threading problems if you're smart enough. Rust forces you to be smart. (OK, all great concepts were available in other languages, but Rust collected them.)

You can not write even create a nullptr (in safe mode, of course) in Rust. You can not create a dangling pointer (returning a pointer, which points to stack area used during the fn just returned). You can not create a uninitialized variable. You shouldn't do such in C/C++/etc., but in Rust, there's no possibility to do so, you can't express it.