Y
Hacker News
new
|
ask
|
show
|
jobs
by
williamdclt
478 days ago
No that’s fine and a reasonable thing to do . In fact, I’d say it is one of the main points of enums and one of my biggest gripes against Go is the lack of that capability
1 comments
floydnoel
478 days ago
Swift can't handle it either, I had to write an extension to add that ability. Felt weird to me.
link
DanielHB
478 days ago
Yeah which is why I originally asked, some other languages don't really have a way to iterate over enums.
link