News for hackers. Stuff that matters.
Re:Comparative unsafety by dundarious on Friday April 09, 2021 @10:55AM (#26751304)
Maybe that's all true, but in the specific example in question, he just does a string conversion and calls into a C library via ffi (for a reason he has justified). I think he has a real point about how the compiler should find this error if Rust is to fully match its marketing, so to speak. Clippy (a tool for style issues as much as anything else) doesn't seem to be an appropriate place for such error checking.

On balance Rust does a great job, but "be even more careful in unsafe Rust than in regular C++" is probably a losing battle.

There are no comments on this comment yet.