Re:The Rust Libs Blitz
by Manishearth on Friday May 05, 2017 @05:24PM
(#14276945)
Not necessarily. This isn't a question with a single answer within the community; there are reasons to tightly scope unsafe, and there are reasons to scope it to the full extent of unsafe-affecting invariants.
Scope your unsafe however you want, but check the invariants when auditing, and make sure they don't escape the module.
Scope your unsafe however you want, but check the invariants when auditing, and make sure they don't escape the module.