Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
samatman
2y ago
0 comments
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
default
newest
oldest
randomdata
2y ago
> 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