Hacker News new | ask | show | jobs
by jjnoakes 1624 days ago
I want to point out to unfamiliar readers that use-after-free in a rust generational array is a logic bug, where as use-after-free in just about any other non-rust context is undefined behavior. Rust's safety is helping here, not by preventing the bug altogether, but by severely limiting the damage it can cause.
1 comments

Are there any good learning resources on how to program to get around these "logic bugs"?

I had a runtime error with my first Bevy game too, because I forgot to add a resources to my app before I used it.