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

unsafe{} means "hey compiler, you cannot verify but this is safe, but I have." This code should be safe to use, unless the human involved has messed something up, in which case, it's a bug.

It's more that the possibility for UB now exists, than it definitely does.



Maybe unsafe should be called assume_safe or presumably_safe or maybe_unsafe... People easily understand it wrong


We considered many things, but in the end, nothing is perfect.




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

Search: