Go accepts a generic Set type for golang.org/x/exp/collection/set
- Sources: primary, discussion
- Summary: Proposal 69230 now carries the Proposal-Accepted label after the Collections working group revised the API. The package defines Set[E comparable] backed transparently by map[E]struct{}, with Of, Collect, Intersection and related helpers. It lives in golang.org/x/exp as a prototype rather than the standard library.
- Why it matters: Go code that hand-rolls map-based sets can try a shared type that may become the convention in public APIs.