News for hackers. Stuff that matters.
Re:Rusty.hpp: A Borrow Checker and Memory Ownership System f... by kaashif on Sunday May 05, 2024 @02:35PM (#40267096)
Yeah, absolutely. My point is that Option itself doesn't give you this API and to make an unsafe version, you have to explicitly write it.

Including UB in easy to misuse places is totally unnecessary and a footgun which really does cause issues in real code.

Re:Rusty.hpp: A Borrow Checker and Memory Ownership System f... by umanwizard on Sunday May 05, 2024 @05:49PM (#40268798)
Yep, I agree completely. Just wanted to point out for completeness that rust can theoretically do the same thing as c++.