TE
TechEcho
Home
24h Top
Newest
Best
Ask
Show
Jobs
English
GitHub
Twitter
Home
The Smallest Thing in Go
89 points
by
gus_leonel
6 months ago
3 comments
unsnap_biceps
6 months ago
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
5 months ago
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 months ago
Collapse
This looks like plain old enum in plain c.<p>Did I miss something that makes it remarkable?
评论 #42363511 未加载
评论 #42363955 未加载
评论 #42363186 未加载
评论 #42363103 未加载