Skip to content

Make Base._unsetindex! (or a function like it) Public #58943

@tecosaur

Description

@tecosaur

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!.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrays[a, r, r, a, y, s]collectionsData structures holding multiple items, e.g. setsfeatureIndicates new feature / enhancement requests

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions