4 ms·
While I agree that manually maintaining objects in memory through indexes is less than ideal sometimes, it's nowhere close to it being the same as managing raw
by spoiler 3y ago
While I agree that manually maintaining objects in memory through indexes is less than ideal sometimes, it's nowhere close to it being the same as managing raw pointers (ie errors are less catastrophic)!
- Animats 3y agoYou still terminate the program or get pointed to the wrong object. You just crash more gracefully and in a more-debuggable way. I am currently using a Rust crate which uses indices for object ownership and just crashed this evening with a subscript error.