6 ms·
Garbage collected languages handle this fine too.
by vbit 11y ago
Garbage collected languages handle this fine too.
- jwilm 11y agoThey handle it fine by tracking references at runtime. The advantage here is compile time verification that the reference will stay valid for the life of the struct - zero runtime overhead.
- Manishearth 11y agoIterator invalidation is still a problem. Plus, having a GC for this would be quite heavy. The codebase was a compiler -- performance is necessary since a compiler's going to be slow anyway.
- steveklabnik 11y agoBut only for memory, and not for other kinds of resources.