3 ms·
Use-after-free is a) probably the least important class of bugs for this sort of thing b) adequately solved with the existing C++ language features anyways.
by otabdeveloper4 6y ago
Use-after-free is
a) probably the least important class of bugs for this sort of thing
b) adequately solved with the existing C++ language features anyways.
So what would be the point of rewriting in Rust?
(Assume the people writing it aready have the C++ knowledge and tooling ready.)
- pjmlp 6y agoc) assuming they have ISO C++ minutiae level of language understanding, https://herbsutter.com/2020/02/17/move-simply/ https://herbsutter.com/2020/02/17/move-simply/
- hctaw 6y agoWhat about iterator invalidation or multiple mutable aliasing in concurrent code
- otabdeveloper4 6y agoIterator invalidation is a kind of use-after-free. Mutating aliased objects is, of course, usually the desired outcome and not a bug. It becomes a bug when your program's concurrency logic is not thought through, and there are no easy solutions here.