Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: