Inclusion of Generational References in Rust

I heard about Generational References in this article as an alternative to reference counting and it seems like it would be a good addition to Rust.

Reference: Youtube video

This has been mentioned recently in the other forum:

You can write a library for this. Also I wouldn't call it an alternative for reference counting as you can still attempt to use objects after freeing them. It just aborts rather than cause UB. By the way that article refers to the "generational indices" pattern for which there are already multiple libraries. It is also used in for example Bevy's ECS for entity id's.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.