Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


NLL 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.


That 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: