Open
Description
Currently, in order to implement an array-backed dictionary that actually frees elements when they're delete!
d, there is (as far as I am aware) no alternative to Base._unsetindex!
.
As a consequence, you can see this function used in basically every dict-like construction outside of Base
: it's in few key packages like DataStructures.jl, OrderedCollections.jl, AbstractAlgebra.jl.
I think unless we want to take the stance that "only Base
is allowed to create array-backed dict-like structures that don't hold on to ghost references", there needs to be a public version of Base._unsetindex!
.