TE
科技回声
首页
24小时热榜
最新
最佳
问答
展示
工作
中文
GitHub
Twitter
首页
The Smallest Thing in Go
89 点
作者
gus_leonel
6 个月前
3 条评论
unsnap_biceps
6 个月前
Collapse
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 未加载
ydnaclementine
6 个月前
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_White
6 个月前
Collapse
This looks like plain old enum in plain c.<p>Did I miss something that makes it remarkable?
评论 #42363511 未加载
评论 #42363955 未加载
评论 #42363186 未加载
评论 #42363103 未加载