3 ms·
This is exciting. In Rust, unique ownership and borrowing eliminate defensive coding: you never need to copy "just in case", because the type system makes it c
by pornel 5y ago
This is exciting.
In Rust, unique ownership and borrowing eliminate defensive coding: you never need to copy "just in case", because the type system makes it clear who can modify what and when.
Elimination of unintentional shared mutable state is generally helpful. It's not just about bare-metal no-GC performance, but helps document and enforce data sharing contract between libraries and their users.