3 ms·
I see that NLL makes the borrow checker easier to work with for developers, but does NLL actually change when objects will be dropped at run-time?
by cpeterso 8y ago
I see that NLL makes the borrow checker easier to work with for developers, but does NLL actually change when objects will be dropped at run-time?
- steveklabnik 8y agoNLL does not affect things that implement Drop. This is called "eager drop", and while it would only affect unsafe code, we deemed it to be too likely to cause problems with said code. Even though it's unsafe, we don't want to make that even harder to understand.
- cpeterso 8y agoThat makes sense. A developer writing unsafe code can more easily and clearly control their drops by introducing new scopes than deciphering where the eager drop happened.
- deleted 8y ago[deleted]