TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The Smallest Thing in Go

89 点作者 gus_leonel6 个月前

3 条评论

unsnap_biceps6 个月前
This is a great primer on iota but the title doesn't make sense to me. I expected talking about an empty struct that uses zero bytes
评论 #42363028 未加载
评论 #42363266 未加载
评论 #42363040 未加载
ydnaclementine6 个月前
Not sure where I read it, but I think it's useful to have your 0th iota value be a not valid value, or as your empty/zero value for the enum. Maybe in the planet example you have "Space" or "Nothingness" as your 0 value
Brian_K_White6 个月前
This looks like plain old enum in plain c.<p>Did I miss something that makes it remarkable?
评论 #42363511 未加载
评论 #42363955 未加载
评论 #42363186 未加载
评论 #42363103 未加载