2 ms·
There have been some fairly involved discussions about generics recently on the Golang mailing list[0][1]. I think at this point the Go team isn't really oppos
by kyrra 12y ago
There have been some fairly involved discussions about generics recently on the Golang mailing list[0][1]. I think at this point the Go team isn't really opposed to Generics, but high-level ideas about it have basically all been proposed at this point.
The only way a generics (however you choose to define it) will be added to Go is if someone puts together an in-depth proposal about how it works, beyond just syntax. This means how it will work with the compiler/linker. How it will work with the runtime and GC.
Due to the amount of time it will take to put together such a proposal without the guarantee that it would be added, no one has gone down that path yet. You also need a deep understanding of many parts of the language to be able to produce such a proposal, which is another barrier.
[0] https://groups.google.com/forum/#!topic/golang-nuts/L-2OTItScJk https://groups.google.com/forum/#!topic/golang-nuts/L-2OTItS...
[1] https://groups.google.com/forum/#!topic/golang-nuts/smT_0BhHfBs https://groups.google.com/forum/#!topic/golang-nuts/smT_0BhH...