Skip to content

Make enum keys of type EnumKey, not int #782

@jkomoros

Description

@jkomoros

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 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions