A Proposal for Adding Generics to Go
blog.golang.org
A Proposal for Adding Generics to Go
1–10 of 273 posts
Re: A Proposal for Adding Generics to Go
#2How many different proposals for generics have there been?
Re: A Proposal for Adding Generics to Go
#3How many different proposals for generics have there been?
I think this makes the third official attempt. I have high visibility into the process, and I think it's likely this one will stick. It'll likely take 2 releases (as Ian stated) to get it done.
Re: A Proposal for Adding Generics to Go
#4How many different proposals for generics have there been?
There's been quite a few early proposals and drafts. This is the first one that I'm aware of that Google have agreed to implement.
Re: A Proposal for Adding Generics to Go
#5How many different proposals for generics have there been?
This is the first. There have been several designs previously, each of which was refined based on feedback, culminating in this proposal.
Re: A Proposal for Adding Generics to Go
#6As much as I've cursed the lack of generics and the limited expressiveness of Go's type system, it's hard for me to reconcile these proposals with what I know of Go. Go was conceived as a small language, a successor to C, and purposely eschewed "new-fangled" features of modern languages. Whether the result is good is a matter of taste, but I feel that retroactively bolting on a modern type system will simultaneously (a) undercut the simplicity of the core language and (b) produce a language that is not as clean as those conceived with generics from the beginning.
Re: A Proposal for Adding Generics to Go
#7How many different proposals for generics have there been?
I have observed it from afar and my impression is that this is a close to final step in a long series of careful iteration, discussion and research.
Re: A Proposal for Adding Generics to Go
#8I hope at some point they manage to add it.
I, however, discovered Rust in the meanwhile. It has generics. And it is not too complex either and has quite a few other bonuses.
Re: A Proposal for Adding Generics to Go
#9Here's the actual proposal:
https://go.googlesource.com/proposal/+/refs/heads/master/des...
Re: A Proposal for Adding Generics to Go
#10Another comment mentions this is the third (serious) attempt at adding generics to Go.
Is there any concise history of these attempts (including this one)? I'd like to understand the gist of these proposals and what ultimately derailed them.
By themselves these proposals are pretty inscurtable.