24 ms·
Wow, it's happening! For others completely out of the loop on that there was even an accepted proposal that is now being implemented: https://go.dev/blog/gener
by 3np 5y ago
Wow, it's happening! For others completely out of the loop on that there was even an accepted proposal that is now being implemented:
https://go.dev/blog/generics-proposal https://go.dev/blog/generics-proposal
- dang 5y agoSome related past threads: Golang generics proposal has been accepted - https://news.ycombinator.com/item?id=26093778 https://news.ycombinator.com/item?id=26093778 - Feb 2021 (168 comments) Go generics proposal moves to “likely accept” - https://news.ycombinator.com/item?id=26018649 https://news.ycombinator.com/item?id=26018649 - Feb 2021 (92 comments) A Proposal for Adding Generics to Go - https://news.ycombinator.com/item?id=25750582 https://news.ycombinator.com/item?id=25750582 - Jan 2021 (270 comments) The Next Step for Generics - https://news.ycombinator.com/item?id=23543131 https://news.ycombinator.com/item?id=23543131 - June 2020 (664 comments) Generics in Go with Ian Lance Taylor (2019) - https://news.ycombinator.com/item?id=22361089 https://news.ycombinator.com/item?id=22361089 - Feb 2020 (98 comments) Why Generics? - https://news.ycombinator.com/item?id=20576845 https://news.ycombinator.com/item?id=20576845 - July 2019 (254 comments) Go's updated generic proposal (Contracts) - https://news.ycombinator.com/item?id=20541079 https://news.ycombinator.com/item?id=20541079 - July 2019 (61 comments)
- omgitsabird 5y agoThe full proposal is here: https://go.googlesource.com/proposal/+/refs/heads/master/design/43651-type-parameters.md https://go.googlesource.com/proposal/+/refs/heads/master/des...
- d33 5y agoAs an outsider planning to eventually learn Go, I have two questions: 1. what's "Go tip"? 2. does this allow us to approximate when it could make it to one of Go's stable releases? I guesstimate it's something that would land not sooner than within a year, right?
- 4ad 5y agoThe "tip" is the head of the development branch. The plan is to have them available as a preview feature in the next stable release, which is scheduled in about 6 months time.