TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Golang: How to Update APIs for Generics

126 pointsby 0xedbover 3 years ago

6 comments

qaqover 3 years ago
Can't wait for the thing to land. My only remaining wish is sum types
评论 #28549994 未加载
评论 #28549815 未加载
评论 #28549357 未加载
评论 #28549688 未加载
37ef_ced3over 3 years ago
This is the way:<p>Use new major versions for stdlib packages, e.g., sort&#x2F;v2
评论 #28547844 未加载
评论 #28549265 未加载
blondinover 3 years ago
just an aside but that github discussions feature looks amazing -- first time i am noticing it. so many &quot;issues&quot; are really just discussions. kudos to the github team.
评论 #28548205 未加载
评论 #28547959 未加载
jcelerierover 3 years ago
&gt; I&#x27;m going to go out on a limb and suggest that we use the Of suffix for generic container types<p>do people ever learn anything.. conventions don&#x27;t work, only things checked by the language grammar matter
评论 #28549557 未加载
评论 #28549905 未加载
评论 #28549745 未加载
brabelover 3 years ago
They&#x27;re still trying to decide basic stuff like how to transition existing APIs to generics!? Wow, that means it will be a long time for generics to land on stable Go.
评论 #28550124 未加载
评论 #28549164 未加载
ddevaultover 3 years ago
This is Go&#x27;s Python 3 moment. This creates a hard fork of the ecosystem, with a before and after, and all existing Go code is now un-idiomatic and will have to be refactored, rewritten, or replaced.
评论 #28549467 未加载
评论 #28549950 未加载