Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
BruceIV
on Sept 30, 2014
|
parent
|
context
|
favorite
| on:
Idiomatic Generics in Go
What happens if you want two different types of set? As-imports? (I've looked at Go, but not written in it.)
bouk
on Sept 30, 2014
[–]
You can alias imports!
http://learntogoogleit.com/post/63748050636/aliasing-imports...
wffurr
on Sept 30, 2014
|
parent
[–]
But then I'm right back to having types named "IntSet" and "StringSet". Though at least they're not using copy/paste code implementations.
natefinch
on Sept 30, 2014
|
root
|
parent
[–]
Well, 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?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: