Y
Hacker News
new
|
ask
|
show
|
jobs
by
ThierryBuilds
171 days ago
Thanks for your response. Wouldn't using the `_` in the enums somehow make almost all integers index "cartable" to the enums?
1 comments
hiccuphippo
167 days ago
Yes, but you have to cast it explicitly. If you have two different arrays each with its own enum, the compiler would throw an error if you used the wrong one.
Sorry for the late response and happy new year!
link
ThierryBuilds
163 days ago
Thanks for the clarification. Happy new year
link
Sorry for the late response and happy new year!