The CXX Debate

from blog Steve Klabnik, | ↗ original
Aug 22 2020 Let’s talk about safe and unsafe in Rust. To review, Rust has a concept of “unsafe code.” Unsafe Rust is a superset of safe Rust, letting you do some extra things that are dangerous. It’s your job as a programmer to verify that your code is playing by the rules, because the compiler cannot check them for you. Imagine we have a C program, add.c that looks like this: #include...