Re:C++23: Removing garbage collection support
by Filligree on Wednesday November 01, 2023 @01:59PM
(#38102211)
It does, which is where the social aspect comes in: You're expected to make every reasonable effort not to use it, even if that comes at slight costs in performance, because practically speaking people are terrible at making those judgements.
Sometimes works well. Sometimes, unfortunately, it leads to bullying.
Re:C++23: Removing garbage collection support
by Sohcahtoa82 on Wednesday November 01, 2023 @02:13PM
(#38102422)
I always pictured that in a professional setting, engineering management would have an edict that `unsafe` is simply not allowed, or possibly, they allow it with extensive code review by multiple engineers.
And that there would also be a lot of people trying to implement a double-linked list and finding themselves having to sprinkle "unsafe" all over the place to satisfy the borrow checker.
Doesn't Rust have an escape hatch in the form of the "unsafe" keyword for cases where you're reasonably sure the code is safe and correct?
I haven't used Rust and most of my knowledge of it comes from HN, so I could easily be wrong.