Re:Golang: How to Update APIs for Generics
by nirui on Thursday September 16, 2021 @11:05AM
(#28552725)
I don't think it would be that easy.
Think how the maintainers of third-party package will maintain their package after this: before, they just need to target the one and only `atomic` (or any other package mentioned in the GitHub discussion), now they might have to target both `atomic` and `atomic/v2` just to support generics.
I really hope they could come up a cleaner solution than this.
Re:Golang: How to Update APIs for Generics
by bradleyankrom on Thursday September 16, 2021 @08:14AM
(#28550751)
I know a lot of “get started with Go” blog posts, books, etc recommend going through the standard library code to see conventions in practice. Go’s stdlib is relatively easy to read, especially if the consumer has some previous experience with other languages.
Or are you assuming newbies read the standard library source?