2 ms·
> their answer to generics requires run-time type checking for every operation Not quite, the Go implementation has runtime optimizations so that the cost for
by jbarham 15y ago
> their answer to generics requires run-time type checking for every operation
Not quite, the Go implementation has runtime optimizations so that the cost for using interfaces/generics is incurred once at first use: http://research.swtch.com/2009/12/go-data-structures-interfaces.html http://research.swtch.com/2009/12/go-data-structures-interfa...