4 ms·
Both garbage collected languages and rust offer memory safety, rust just trades better performance for a more complicated borrow system. Use rust when you need
by andrewchambers 10y ago
Both garbage collected languages and rust offer memory safety, rust just trades better performance for a more complicated borrow system.
Use rust when you need the performance. Use a GC'd language like reason when you want less things to reason about.
- wtetzner 10y ago> rust just trades better performance for a more complicated borrow system. I would say Rust trades more predictable performance for a more complicated borrow system.
- ngrilly 10y agoExactly.
- chrismorgan 10y agoRust’s borrow system is actually not the key part; if it were just that, then yes, it would be purely a complication performance would be the only important part about it when comparing it with garbage collection. No: the key part is the ownership model, that an object is owned in precisely one location. Borrowing sits on top of and fits into that, not the other way round. The ownership model is the part that I don't myself yearning for in other languages I work in such as Python and JavaScript.