r/ProgrammerHumor • • Jul 18 '20

I also need help

/img/26u0ffsdfob51.png
8.5k Upvotes

224 comments sorted by

View all comments

Show parent comment

1

u/Eolu Jul 20 '20

Despite the fact that the semantics of ownership is foreign to other languages, learning how it works can give you insight that transfers to other languages. For instance, say Rust prevents you from passing reference to x somewhere that might secretly modify it from a different context. C will allow it, but since Rust experience has already taught you that this is a potentially dangerous design, you’re more cognizant and careful about how you’re handling it. Without Rust experience your first instinct might be to do this blindly, only learning the consequences through some long and cryptic debugging sessions.