Yeah, I was exaggerating a bit, but yes I think there could be room for bugs depending on what more involved operations are offered beyond basic membership tests.
Anyway, have you seen the map[T]struct{} idiom for Go? Decent enough for the basic case.
Anyway, have you seen the map[T]struct{} idiom for Go? Decent enough for the basic case.