News for hackers. Stuff that matters.
Re:The Next Step for Generics by rogpeppe1 on Wednesday June 17, 2020 @05:28AM (#23549484)
I'm not sure that hiding the implementation is worth it here. Why not just make it public that it's actually map[T]struct{} underneath - then anyone can range on it and implement allocation optimisations, etc? I added some other methods too for the crack https://go2goplay.golang.org/p/EI1hYaSohnc

There are no comments on this comment yet.