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

Ah so locks come into play when you deliberately disable compile checks?


Not exactly. Disabling the borrow checker is an internal implementation detail of the locking types, but it happens opaquely to the code using the locks.

The locking types make assurances with regards to the lifetimes of their parameters / contents / return values and these are still enforced by the compiler.




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

Search: