News for hackers. Stuff that matters.
Re:Rust’s standard library was vulnerable for years and nobo... by Nimelrian on Tuesday February 12, 2019 @09:54AM (#19143902)
Good rust code doesn't have to be free of unsafe blocks. In some cases you can't avoid them, e.g. when doing memory mapping. Instead, the unsafe blocks semantically designate areas you should keep an eye on. I rather have 20 unsafe one-liners surrounded by safe wrappers in a project with several thousand LOC, than a 1k LOC C project where I have to take extra care with every step.

There are no comments on this comment yet.