upvote
Memory safety doesn't help too much here, but "RAII" (automatically dropping values when they go out of scope) does.
reply