
“In languages with a garbage collector (GC), the GC keeps track and cleans up memory that isn’t being used anymore, and we don’t need to think about it. Without a GC, it’s our responsibility to identify when memory is no longer being used and call code to explicitly return it, just as we did to request it. Doing this correctly has historically been a difficult programming problem. If we forget, we’ll waste memory. If we do it too early, we’ll have an invalid variable. If we do it twice, that’s a bug too. We need to pair exactly one allocate with exactly one free.
Rust takes a different path: the memory is automatically returned once the variable that owns it goes out of scope.”
―
The Rust Programming Language
Share this quote:
Friends Who Liked This Quote
To see what your friends thought of this quote, please sign up!
2 likes
All Members Who Liked This Quote
This Quote Is From
Browse By Tag
- love (100684)
- life (78892)
- inspirational (75356)
- humor (44113)
- philosophy (30694)
- inspirational-quotes (28602)
- god (26783)
- truth (24572)
- wisdom (24365)
- romance (24197)
- poetry (23079)
- life-lessons (22231)
- quotes (20511)
- death (20450)
- happiness (18879)
- hope (18394)
- faith (18265)
- inspiration (17186)
- spirituality (15580)
- relationships (15364)
- religion (15310)
- motivational (15224)
- life-quotes (15146)
- love-quotes (15020)
- writing (14881)
- success (14127)
- motivation (13062)
- travel (12943)
- time (12783)
- science (12002)