News for hackers. Stuff that matters.
Re:Bugs that the Rust compiler catches for you by oynqr on Friday May 06, 2022 @12:56AM (#31281469)
You can still write memory safety bugs, you just need unsafe. I'm glad unsafe is used in so many libraries.
Re:Bugs that the Rust compiler catches for you by chousuke on Friday May 06, 2022 @02:14AM (#31281862)
Libraries are where unsafe belongs. Having unsafe be an explicit feature is immeasurably better compared to every line in the entire program potentially being unsafe.

Opting out of safety is fine, but safety must be opt-out to be effective, not opt-in. A standard, enforced way to tell readers where the dragons lie is super helpful.

Re:Bugs that the Rust compiler catches for you by Ar-Curunir on Friday May 06, 2022 @10:41AM (#31285704)
Right, note that I said safe Rust, which is the vast vast majority of Rust out there. This is a major improvement over, say, C, where any line of code could be potentially unsafe.