by _ak · 13y ago · 0 comments
So far, the Go team decided to go for approach #1.
Except where they personally really wanted parametric polymorphic collections so they baked them as special case into the runtime, of course (map, chan, …)
Of course, it's not easy to write such static optimizations. But it is, in principle, possible, and the sort of thing you only need write once.
Well Go is open source so "someone" would just have to write, test and submit a CL / patch... ;-)