You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's weird that NewThreadUnsafeSet() doesn't take optional elements and includes them in the returned set.
The ergonomics of NewSet(... interface{}) are much nicer!
Also, the docs for NewSet() say it returns an empty set, yet that's not necessarily true... I was going to open a PR to fix that when I noticed the inconsistency with NewThreadUnsafeSet().
So would you rather they both take optional args, or neither?
IMO the former is both backwards compatible and also a more pleasant API.