|
|
|
|
|
by nercury
3444 days ago
|
|
I use Rust primarily because it has very precise mutability semantics: things are either immutable or uniquely mutable. It is much easier to understand what can or can not happen to structures when they are passed between functions, as opposed to, say, Java, where object's lifetime is undefined. Destruction after last use (RAII) ensures that resources such as files, sockets, db connections are closed. Also unavailable in majority of languages. Also the language is expressive (type inference, generics, pattern matching, traits). These three things are the main reasons, although I wish other languages (old or new) would pick up the first idea too. |
|