+1 on this.
At the moment, every module that needs a set implementation ends up
creating its own, either using map[T]struct{} or map[T]bool. Having a set
implementation in the standard library would significantly increase
operability between modules, even if the implementation is trivial.
On Monday, July 1, 2024 at 7:43:19 PM UTC+2 Frederik Zipp wrote:
> Some time ago, Ian started a discussion about a potential proposal for a
> container/set package: https://github.com/golang/go/discussions/47331
>
> The main point of uncertainty was iterating over elements. Now that
> iteration is solved in Go 1.23, is it perhaps time to advance this design
> and turn it into a proposal for the 1.24 release cycle?
>
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/7730dc45-fc43-4ac5-a9b3-2c8ec7647dddn%40googlegroups.com.