Skip to content

Renaming an enum #6

@schnerd

Description

@schnerd

First off – love this guide!

I see the note about adding or renaming fields in an enum. I'm wondering about changing the name of an enum. For example:

enum Status = {
  PRIVATE = 0,
  PUBLIC = 1
};

Becomes:

enum Visibility = {
  PRIVATE = 0,
  PUBLIC = 1
};

Same exact field names and values, just a enum name change. Any chance this can be added to the guide?

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