News for hackers. Stuff that matters.
Re:Handles Are the Better Pointers by pie_flavor on Wednesday June 21, 2023 @11:56AM (#36420212)
I love this pattern! I make use of it all the time in Rust with the slotmap library. Improves upon arrays by versioning the indexes so values can be deleted without messing up existing indexes and the space can be reused without returning incorrect values for old indexes.

There are no comments on this comment yet.