You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's probably more clear to make them type EnumKey int, just for clarity. For example, GameDelegate.GroupMembership has to explain in documentation what map[int]bool means.
It's a little confusing that a given int isn't guaranteed to be in a given Enum, but at least it's clear what the intent is.
The text was updated successfully, but these errors were encountered:
Currently keys in Enums are all ints.
It's probably more clear to make them
type EnumKey int
, just for clarity. For example, GameDelegate.GroupMembership has to explain in documentation whatmap[int]bool
means.It's a little confusing that a given
int
isn't guaranteed to be in a given Enum, but at least it's clear what the intent is.The text was updated successfully, but these errors were encountered: