Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
samatman
2y ago
0 comments
Save
Share
C does have enums. Not trying to detract from your point, which I agree with, but enums are definitely a thing, which C has.
0 comments
3 comments · 1 top-level
top
newest
oldest
randomdata
2y ago
· 2 in thread
> C does have enums.
Then again, so does Go. Go doesn't have an enum keyword like C, but that isn't what defines enums.
xigoi
2y ago
But neither C nor Go have type-safe enums.
randomdata
2y ago
They are type safe. They are not value safe, but neither language supports value constraints, so that isn't unexpected.
1 more reply
j
/
k
navigate · click thread line to collapse