Y
Hacker News
new
|
ask
|
show
|
jobs
by
minamea
4950 days ago
Someone correct me if I'm wrong, but I think that's true only if you use methods and not operators, because Go doesn't support operator overloading.
2 comments
stonemetal
4948 days ago
The other place you really feel the lack of generics is in the collections. They are built around the empty interface so that they can hold any type. Then you have to cast back to what you want. Exactly like Java pre generics. ugh.
link
4ad
4949 days ago
That's correct, which means stonemetal's comment is true only for non-math code, but 99% of the code out there is not math.
link