4 ms·
What happens if you want two different types of set? As-imports? (I've looked at Go, but not written in it.)
by BruceIV 12y ago
What happens if you want two different types of set? As-imports? (I've looked at Go, but not written in it.)
- bouk 12y agoYou can alias imports! http://learntogoogleit.com/post/63748050636/aliasing-imports-in-golang http://learntogoogleit.com/post/63748050636/aliasing-imports...
- wffurr 12y agoBut then I'm right back to having types named "IntSet" and "StringSet". Though at least they're not using copy/paste code implementations.
- NateDad 12y agoWell, they are using copy and paste, it's just automated. But is Set<int> really better than IntSet? Don't they carry the same information?