3 ms·
> But why is Rust so much harder than any other newish programs language. For one, Rust has manual memory management. You are aided by the type system and the
by diegocg 5y ago
> But why is Rust so much harder than any other newish programs language.
For one, Rust has manual memory management. You are aided by the type system and the compiler, but it's the programmer who has to deal with the mental load of thinking about the lifetime aspects of every variable. Compare to a GCed language, where you just free your mind and can focus on your program.
- kibwen 5y agoTo be more precise, I consider Rust to have "automatic static memory management", in contrast to C's "manual static memory management", or Java's "automatic dynamic memory management". The static part makes it harder than Java, because you do need to think about how to structure things, but the automatic part makes it easier than C, because the Rust compiler does the nitty-gritty for you.