News for hackers. Stuff that matters.
Re:Rust is the future, C is the new Assembly: Josh Triplett ... by Tuna-Fish on Wednesday August 28, 2019 @02:15PM (#20822445)
The borrow/lifetime system never changes the behavior of any program, the only thing it can do is to disallow some programs from compiling. This is not how the rest of the type system works.

This means that it's possible to write a compiler that correctly compiles all correct rust programs without having a lifetime system at all. It also means that having the lifetime system in makes writing programs more complicated, but it makes reading them, and understanding what a program does, easier.

Re:Rust is the future, C is the new Assembly: Josh Triplett ... by wbl on Wednesday August 28, 2019 @05:20PM (#20824086)
Ownership is linear types. It's part of the type system.
Re:Rust is the future, C is the new Assembly: Josh Triplett ... by Tuna-Fish on Wednesday August 28, 2019 @06:06PM (#20824519)
Yes, but borrowing isn't, and ownership is by itself no more complicated than RAII.