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

A not-so-secret secret of Rust is that liberal use of 'unsafe' is pretty much required for certain classes of high-performance code.


imo if you're sprinkling around `unsafe` in your codebase "liberally", you're holding it wrong. In general it's really not that hard to encapsulate most unsafety into a wide-contract abstraction; I’d argue where Rust really shines is when you take advantage of the type system and static analyzer to automatically uphold invariants for you




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

Search: