3 ms·
> When you hit a limitation you really need to implement in Rust, they say "Hey, there's unsafe{}, use that". Also, they advocate that unsafe{} is equal to C/C+
by ladyanita22 4y ago
> When you hit a limitation you really need to implement in Rust, they say "Hey, there's unsafe{}, use that". Also, they advocate that unsafe{} is equal to C/C++ in programming freedom, which is again not.
I'm interested. How does rust unsafe give you less freedom than let's say c or cpp?
- steveklabnik 4y agoRust's unsafe still needs to uphold the rules of safe Rust. It's not a license to just do whatever you want. There are often ways to do whatever you want, but it's not as simple as "I have a raw pointer now let's goooooo." I'd describe it as different, not "less", but I wasn't the one who said it originally.