3 ms·
Isn't the difference in it being required, and opt-out (unsafe) in rust, but opt-in here? Also, my understanding is the rust compiler guarantees "soundness" in
by nickitolas 4y ago
Isn't the difference in it being required, and opt-out (unsafe) in rust, but opt-in here? Also, my understanding is the rust compiler guarantees "soundness" in safe rust, so it checks and validates that the function signatures (with annotations like lifetimes) are correct
- ttfkam 4y agoAlso Rust's macros are logically part of Rust whereas the C preprocessor knows nothing about the C language. To say the C preprocessor complicates analysis is an understatement.