News for hackers. Stuff that matters.
Re:Modern C++ Won't Save Us (2019) by tpoacher on Monday April 26, 2021 @02:57AM (#26939995)
> As a result, "unsafe" is too often used as an escape hatch when someone can't spend the time to get it right.

Isn't that exactly the same as C++ then?

Re:Modern C++ Won't Save Us (2019) by tialaramex on Monday April 26, 2021 @06:09AM (#26940980)
Every time somebody got lazy and used "unsafe" in Rust that's unavoidably annotated in the code. If the compiler can't prove it's safe and you don't label it "unsafe" it won't compile at all.

Even coming in years later, a maintenance programmer can identify this code is suspect, whereas these other parts are safe.

Whereas if you get lazy in C++ you can do whatever unsafe things you want, anywhere, and it leaves no trace.