2 ms·
> There's also no reason the compiler couldn't allow the deferred call once the last reference has been utilized There's one reason not to do this - preserving
by zozbot234 7y ago
> There's also no reason the compiler couldn't allow the deferred call once the last reference has been utilized
There's one reason not to do this - preserving the language semantics. Rust's version of RAII drops owned objects at the end of their scope for the same reason, even though it 'could' do better especially given NLL.