Hacker News new | ask | show | jobs
by thiht 843 days ago
Agree, iota is terrible. I think I encountered exactly one time where iota was a good fit for what I wanted to do (an internal representation of some kind, so whether the value changes in the future was irrelevant), but even then it was just needlessly opaque compared to just assigning values.

Real enumerations/discriminated unions is the one thing I consistently wish for in the Go annual surveys