Advancing the container/set design?

97 views
Skip to first unread message

Frederik Zipp

unread,
Jul 1, 2024, 1:43:19 PM (6 days ago) Jul 1
to golang-nuts
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?

twp...@gmail.com

unread,
Jul 1, 2024, 4:49:40 PM (6 days ago) Jul 1
to golang-nuts
+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.
Reply all
Reply to author
Forward
0 new messages