by samatman · 2y ago · 0 comments
Then again, so does Go. Go doesn't have an enum keyword like C, but that isn't what defines enums.
The introduction rule for enum values in C is _not_ type safe. You know how you can tell? Well typed programs go wrong. a language absolutely does not need value constraints of any kind to get this right.