Earlier quoted context omitted.
Rust doesn't guarantee freedom of leaks, as leaking is memory-safe.
To be fair, I think the way GP worded it might still be accurate; they said that you wouldn't leak by forgetting to collect it. I took that as a statement about not needing to manually free things than an assertion that Rust guarantees no memory leaks (which can still occur from things like reference cycles).
An embedded database written in Rust
71–74 of 74 posts
Re: An embedded database written in Rust
#72Earlier quoted context omitted.
To be fair, I think the way GP worded it might still be accurate; they said that you wouldn't leak by forgetting to collect it. I took that as a statement about not needing to manually free things than an assertion that Rust guarantees no memory leaks (which can still occur from things like reference cycles).
You’re right, I might be overly sensitive to people incorrectly making this claim directly.
Re: An embedded database written in Rust
#73Earlier quoted context omitted.
You’re right, I might be overly sensitive to people incorrectly making this claim directly.
I too try (and sometimes fail) to be careful when talking about this. People get all hot and bothered when you go overboard :P It can be tempting to start explaining what an afine type system is, but that can hurt more than help.