Re:Upcoming Rust language features for kernel development
by vlovich123 on Thursday October 16, 2025 @11:29PM
(#45613057)
Oh and to add on, in c++ there’s no borrow checker and no language guarantees that exploit UB in the way Rust does with ownership. What does it matter if two parts of a single threaded program have simultaneous mutable references to something - it’s not a safety or correctness issue as there’s no risk of triggering UB and there’s no ill formed program that could be generated that way. IMHO a RefCell equivalent in C++ is utterly pointless.
Given how the committee works and the direction they insist on taking, C++ will never ever become a safe language.