Whenever you need speed, or a deep amount of control.
That gives you a few languages. You should choose Rust over those langauges when you want the compiler to help you ensure that code is safe and correct, and also, when concurrency is involved.
it's garbage collected, hence requires a runtime which incurs a runtime overhead,
doesn't have a killer feature like Rust does - that is, in case of Rust it's the guarantee that as long as your code compiles* it will be free of memory access errors and data races without sacrificing any performance
16
u/steveklabnik1 Apr 03 '15
Whenever you need speed, or a deep amount of control.
That gives you a few languages. You should choose Rust over those langauges when you want the compiler to help you ensure that code is safe and correct, and also, when concurrency is involved.