by catnaroek · 8y ago · 0 comments
Except for the part where destructors are meant to be called no more than once per object, at the end of its lifetime. All that you can guarantee is that `with_file` doesn't call the destructor more than once. But that's not terribly interesting.
But again hence the value of having the lifetime of the object enforced by the type system.