Hacker News new | ask | show | jobs
by cyber_kinetist 1302 days ago
This is one of the main reason you should use indices instead of pointers to store references to other objects (regardless of if you’re using Rust or C++): memory safety. Indices can be bound-checked, pointers can’t.