Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Rust is pretty much the first mainstream-ish language ever to have substructural typing as a core feature. I can't see how this is archaic.


To be fair, C++ has an approximation of it with move semantics/rvalue references—and I'm really glad that it does, since it makes unique pointers much more mainstream of a concept than it would have been otherwise. (Rust tries to avoid unfamiliar concepts with no analogues in other languages.) It's just not safe in C++; there are lots of ways to get undefined behavior via use-after-move.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: