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.

The Smallest Thing in Go

89 pointsby gus_leonel6 months ago

3 comments

unsnap_biceps6 months ago
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 未加载
ydnaclementine5 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_White6 months ago
This looks like plain old enum in plain c.<p>Did I miss something that makes it remarkable?
评论 #42363511 未加载
评论 #42363955 未加载
评论 #42363186 未加载
评论 #42363103 未加载