Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New mutation type: fiddle with switch statement cases #68

Open
ZevEisenberg opened this issue Feb 15, 2019 · 0 comments
Open

New mutation type: fiddle with switch statement cases #68

ZevEisenberg opened this issue Feb 15, 2019 · 0 comments
Labels
mutation operators Work that's intended to improve the mutation operators muter has

Comments

@ZevEisenberg
Copy link
Collaborator

Before:

switch myEnum {
    case .a: doFunctionA()
    case .b: doFunctionB()
}

After:

switch myEnum {
    case .a: doFunctionB()
    case .b: doFunctionA()
}

Makes the most sense for enums without associated values. Associated values might be interesting to think about, but probably as a separate feature.

@rakaramos rakaramos added the mutation operators Work that's intended to improve the mutation operators muter has label Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mutation operators Work that's intended to improve the mutation operators muter has
Projects
Status: To do
Development

No branches or pull requests

2 participants