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

It does, which is where the social aspect comes in: You're expected to make every reasonable effort not to use it, even if that comes at slight costs in performance, because practically speaking people are terrible at making those judgements.

Sometimes works well. Sometimes, unfortunately, it leads to bullying.



I always pictured that in a professional setting, engineering management would have an edict that `unsafe` is simply not allowed, or possibly, they allow it with extensive code review by multiple engineers.

And that there would also be a lot of people trying to implement a double-linked list and finding themselves having to sprinkle "unsafe" all over the place to satisfy the borrow checker.


Both of those happen. Though in practice, unless you’re specifically implementing basic infrastructure, I’ve never yet had any need to use unsafe.




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

Search: